mstover1 2004/08/11 12:55:10
Modified: src/jorphan/org/apache/jorphan/collections HashTree.java
Log:
Catching a potential null pointer exception
Revision Changes Path
1.17 +7 -3
jakarta-jmeter/src/jorphan/org/apache/jorphan/collections/HashTree.java
Index: HashTree.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/jorphan/org/apache/jorphan/collections/HashTree.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- HashTree.java 26 Jun 2004 00:46:01 -0000 1.16
+++ HashTree.java 11 Aug 2004 19:55:10 -0000 1.17
@@ -804,7 +804,11 @@
*/
public Object[] getArray(Object key)
{
- return getTree(key).getArray();
+ HashTree t = getTree(key);
+ if(t != null)
+ return t.getArray();
+ else
+ return null;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]