You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2013/10/01 16:49:47 UTC

svn commit: r1528110 - /logging/log4net/trunk/src/Core/StackFrameItem.cs

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);
 				}
 			}