logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1528110 - /logging/log4net/trunk/src/Core/StackFrameItem.cs
Date Tue, 01 Oct 2013 14:49:47 GMT
Author: dpsenner
Date: Tue Oct  1 14:49:46 2013
New Revision: 1528110

URL: http://svn.apache.org/r1528110
Log:
LOG4NET-393 StackFrameItem should respect the non existant DeclaringType in dynamic methods

Modified:
    logging/log4net/trunk/src/Core/StackFrameItem.cs

Modified: logging/log4net/trunk/src/Core/StackFrameItem.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Core/StackFrameItem.cs?rev=1528110&r1=1528109&r2=1528110&view=diff
==============================================================================
--- logging/log4net/trunk/src/Core/StackFrameItem.cs (original)
+++ logging/log4net/trunk/src/Core/StackFrameItem.cs Tue Oct  1 14:49:46 2013
@@ -58,7 +58,8 @@ namespace log4net.Core
 				MethodBase method = frame.GetMethod();
 				if (method != null)
 				{
-					m_className = method.DeclaringType.FullName;
+					if(method.DeclaringType != null)
+						m_className = method.DeclaringType.FullName;
 					m_method = new MethodItem(method);
 				}
 			}



Mime
View raw message