logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1486868 - /logging/log4net/trunk/src/Appender/FileAppender.cs
Date Tue, 28 May 2013 11:16:52 GMT
Author: dpsenner
Date: Tue May 28 11:16:51 2013
New Revision: 1486868

URL: http://svn.apache.org/r1486868
Log:
LOG4NET-379 fixed an avoidable NullReferenceException raised in the Fileappender ActivateOptions()

Modified:
    logging/log4net/trunk/src/Appender/FileAppender.cs

Modified: logging/log4net/trunk/src/Appender/FileAppender.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Appender/FileAppender.cs?rev=1486868&r1=1486867&r2=1486868&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/FileAppender.cs (original)
+++ logging/log4net/trunk/src/Appender/FileAppender.cs Tue May 28 11:16:51 2013
@@ -963,14 +963,13 @@ namespace log4net.Appender
 			}
 
 			m_lockingModel.CurrentAppender=this;
-
-			using(SecurityContext.Impersonate(this))
-			{
-				m_fileName = ConvertToFullPath(m_fileName.Trim());
-			}
-
+			
 			if (m_fileName != null) 
 			{
+				using(SecurityContext.Impersonate(this))
+				{
+					m_fileName = ConvertToFullPath(m_fileName.Trim());
+				}
 				SafeOpenFile(m_fileName, m_appendToFile);
 			} 
 			else 



Mime
View raw message