db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1068302 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java
Date Tue, 08 Feb 2011 09:26:36 GMT
Author: kahatlen
Date: Tue Feb  8 09:26:35 2011
New Revision: 1068302

URL: http://svn.apache.org/viewvc?rev=1068302&view=rev
Log:
DERBY-5008: fix npe in error condition

Fix contributed by Dave Brosius <dbrosius@apache.org>.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java?rev=1068302&r1=1068301&r2=1068302&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java Tue
Feb  8 09:26:35 2011
@@ -2157,11 +2157,11 @@ public final class LogToFile implements 
 
 					if (privExists(newLogFile))
 					    privDelete(newLogFile);
-					newLogFile = null;
 
 					logErrMsg(MessageService.getTextMessage(
                         MessageId.LOG_CANNOT_CREATE_NEW,
                         newLogFile.getPath()));
+					newLogFile = null;
  				}
 
 			}



Mime
View raw message