summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2011-09-22 06:14:10 (EDT)
committer xgu2011-10-25 02:10:13 (EDT)
commitd2db680de6e2449c6738f15a74a5d5c4726963d0 (patch)
tree67ce135266ff3e2a32513440cbdf53bfbb108ed4
parent4d01ee41a070f9534c0339e7c7c2fe7cde7255a6 (diff)
downloadorg.eclipse.birt-d2db680de6e2449c6738f15a74a5d5c4726963d0.zip
org.eclipse.birt-d2db680de6e2449c6738f15a74a5d5c4726963d0.tar.gz
org.eclipse.birt-d2db680de6e2449c6738f15a74a5d5c4726963d0.tar.bz2
Fixed an NPE issue.
-rw-r--r--UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/VariableDropAdapter.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/VariableDropAdapter.java b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/VariableDropAdapter.java
index a3952a1..9adcc4a 100644
--- a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/VariableDropAdapter.java
+++ b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/VariableDropAdapter.java
@@ -75,8 +75,7 @@ public class VariableDropAdapter implements IDropAdapter
}
// variable can drop to gridin master page, bug 293121
if ( getMasterPageHandle( editPart ) != null
- || ( (VariableElementHandle) transfer ).getType( )
- .equals( DesignChoiceConstants.VARIABLE_TYPE_REPORT ) )
+ || DesignChoiceConstants.VARIABLE_TYPE_REPORT.equals( ( (VariableElementHandle) transfer ).getType( ) ) )
return DNDService.LOGIC_TRUE;
else
return DNDService.LOGIC_FALSE;