net-commons / common-logging

A portable logging abstraction for .NET
http://net-commons.github.io/common-logging
Apache License 2.0
649 stars 205 forks source link

System.NullReferenceException in Common.Logging.Simple.ExceptionFormatter.SafeGetTargetSiteInfo #184

Open avonwyss opened 4 years ago

avonwyss commented 4 years ago

The exception occurs because ReflectedType may return null (this is not a bug, see documentation). This is very problematic because it means that the logging code will crash the application in such a case.