You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by ka...@apache.org on 2013/03/31 20:24:37 UTC

svn commit: r1463026 - /labs/mavibot/branches/mavibot-multivalue-support/mavibot/src/main/java/org/apache/mavibot/btree/BTree.java

Author: kayyagari
Date: Sun Mar 31 18:24:37 2013
New Revision: 1463026

URL: http://svn.apache.org/r1463026
Log:
added a null check

Modified:
    labs/mavibot/branches/mavibot-multivalue-support/mavibot/src/main/java/org/apache/mavibot/btree/BTree.java

Modified: labs/mavibot/branches/mavibot-multivalue-support/mavibot/src/main/java/org/apache/mavibot/btree/BTree.java
URL: http://svn.apache.org/viewvc/labs/mavibot/branches/mavibot-multivalue-support/mavibot/src/main/java/org/apache/mavibot/btree/BTree.java?rev=1463026&r1=1463025&r2=1463026&view=diff
==============================================================================
--- labs/mavibot/branches/mavibot-multivalue-support/mavibot/src/main/java/org/apache/mavibot/btree/BTree.java (original)
+++ labs/mavibot/branches/mavibot-multivalue-support/mavibot/src/main/java/org/apache/mavibot/btree/BTree.java Sun Mar 31 18:24:37 2013
@@ -956,6 +956,11 @@ public class BTree<K, V>
      */
     public boolean hasKey( K key ) throws IOException
     {
+        if( key == null )
+        {
+            return false;
+        }
+        
         return rootPage.findPos( key ) < 0;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org