Author: toad
Date: 2007-09-10 23:00:44 +0000 (Mon, 10 Sep 2007)
New Revision: 15124

Modified:
   trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
Log:
Fix another NPE

Modified: trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-09-10 
22:57:11 UTC (rev 15123)
+++ trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-09-10 
23:00:44 UTC (rev 15124)
@@ -1795,8 +1795,8 @@
        private void checkSecondaryDatabaseError(Throwable ex) {
                String msg = ex.getMessage();
                if(ex instanceof DatabaseException) {
-                       if(msg != null && (msg.indexOf("missing key in the 
primary database") > -1) ||
-                                       msg.indexOf("the primary record 
contains a key that is not present in the secondary") > -1) {
+                       if(msg != null && ((msg.indexOf("missing key in the 
primary database") > -1) ||
+                                       msg.indexOf("the primary record 
contains a key that is not present in the secondary") > -1)) {
                                try {
                                        fixSecondaryFile.createNewFile();
                                } catch (IOException e) {


Reply via email to