Update of /var/cvs/src/org/mmbase/bridge/implementation
In directory james.mmbase.org:/tmp/cvs-serv23880

Modified Files:
        BasicQuery.java 
Log Message:
replaced a NPE with a bit more informaative exception


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge/implementation


Index: BasicQuery.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/implementation/BasicQuery.java,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -b -r1.70 -r1.71
--- BasicQuery.java     22 Oct 2007 08:42:40 -0000      1.70
+++ BasicQuery.java     27 Feb 2008 11:48:44 -0000      1.71
@@ -28,7 +28,7 @@
  * [EMAIL PROTECTED] #BasicQuery(Cloud, BasicSearchQuery)}.
  *
  * @author Michiel Meeuwissen
- * @version $Id: BasicQuery.java,v 1.70 2007/10/22 08:42:40 nklasens Exp $
+ * @version $Id: BasicQuery.java,v 1.71 2008/02/27 11:48:44 michiel Exp $
  * @since MMBase-1.7
  * @see org.mmbase.storage.search.implementation.BasicSearchQuery
  */
@@ -599,6 +599,7 @@
     public void addNode(Step  s, int nodeNumber) {
         if (used) throw new BridgeException("Query was used already");
         BasicStep step = (BasicStep) s;
+        if (step == null) throw new IllegalArgumentException("Step may not be 
null");
         step.addNode(nodeNumber);
         return;
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to