Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2013-07-05 13:01:47 -0400
committerBrian Vosburgh2013-07-05 13:01:47 -0400
commita1d79b6a634bb944649041b2d3662423649d1459 (patch)
treed5a8aab723ece5e06fd98dd1b52e64d40b9813b3 /common/plugins/org.eclipse.jpt.common.core/src
parent8c01078a427f8060f7168318b6ad751d55b91d7d (diff)
downloadwebtools.dali-a1d79b6a634bb944649041b2d3662423649d1459.tar.gz
webtools.dali-a1d79b6a634bb944649041b2d3662423649d1459.tar.xz
webtools.dali-a1d79b6a634bb944649041b2d3662423649d1459.zip
fix NPE when reverting orm.xml
Diffstat (limited to 'common/plugins/org.eclipse.jpt.common.core/src')
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/EBaseObjectImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/EBaseObjectImpl.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/EBaseObjectImpl.java
index e1b86f9e9c..5c07664151 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/EBaseObjectImpl.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/resource/xml/EBaseObjectImpl.java
@@ -252,7 +252,7 @@ public abstract class EBaseObjectImpl
}
public boolean containsOffset(int textOffset) {
- return this.node.contains(textOffset);
+ return (this.node != null) && this.node.contains(textOffset);
}

Back to the top