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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to