commit | 3c89806054e96241c4fc46b16d50336ef28df77b | [log] [tgz] |
---|---|---|
author | Matthew Jason Benson <mbenson@apache.org> | Mon Jun 23 20:12:44 2008 +0000 |
committer | Matthew Jason Benson <mbenson@apache.org> | Mon Jun 23 20:12:44 2008 +0000 |
tree | d7261395ad532247b680493dd9864c4c380189e1 | |
parent | d783b219111b2f92b048a5588f6de3d4e8040c2b [diff] |
potential NPE git-svn-id: https://svn.apache.org/repos/asf/commons/proper/jxpath/trunk@670728 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/java/org/apache/commons/jxpath/util/ValueUtils.java b/src/java/org/apache/commons/jxpath/util/ValueUtils.java index 87ef105..7b288a6 100644 --- a/src/java/org/apache/commons/jxpath/util/ValueUtils.java +++ b/src/java/org/apache/commons/jxpath/util/ValueUtils.java
@@ -50,10 +50,10 @@ * @return boolean */ public static boolean isCollection(Object value) { + value = getValue(value); if (value == null) { return false; } - value = getValue(value); if (value.getClass().isArray()) { return true; }