summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-08-16 16:07:17 (EDT)
committer pelder2006-08-16 16:07:17 (EDT)
commit7d152799d36ea95ddcfd3e89c1402c6c6cb54267 (patch)
treeb4259ef941f00a863a28e35472cd2e4fa052f285
parenta9fe52b8b438c1d1db835b443192cbf11e114498 (diff)
downloadorg.eclipse.jet-7d152799d36ea95ddcfd3e89c1402c6c6cb54267.zip
org.eclipse.jet-7d152799d36ea95ddcfd3e89c1402c6c6cb54267.tar.gz
org.eclipse.jet-7d152799d36ea95ddcfd3e89c1402c6c6cb54267.tar.bz2
[154152] Incorrect variable used in guard on setVariable call.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/CopyElementTag.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/CopyElementTag.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/CopyElementTag.java
index efbafa9..8c0d4ed 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/CopyElementTag.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/CopyElementTag.java
@@ -62,7 +62,7 @@ public class CopyElementTag extends AbstractEmptyTag
Object newElement = xpathExtender.copyElement(srcElement, tgtParent, name, recursive);
- if (name != null && newElement != null)
+ if (var != null && newElement != null)
{
context.setVariable(var, newElement);
}