Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java
index 5c5cbe9..d7137e6 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java
@@ -76,7 +76,7 @@ public class Function extends ExprNode
try
{
final Object result = function.evaluate(functionArgValues);
- if(result != null && result.getClass().isArray()) {
+ if(result instanceof Object[]) {
return XPathUtil.asNodeSet((Object[])result);
} else if(result instanceof Collection && !(result instanceof NodeSet)) {
return XPathUtil.asNodeSet((Collection)result);

Back to the top