Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetya Sabeva2016-04-11 02:21:42 -0400
committerPetya Sabeva2016-04-11 02:21:42 -0400
commit9ef8eb7e39d4b67a2ea6f3ea0fa955ce3130d07c (patch)
tree4d5abb1ff327159937b79ce13bc8a4c98bbd118f
parent5a6557eaeb06cba8f5e98b6e58ea7842f18e2aec (diff)
downloadwebtools.dali-9ef8eb7e39d4b67a2ea6f3ea0fa955ce3130d07c.tar.gz
webtools.dali-9ef8eb7e39d4b67a2ea6f3ea0fa955ce3130d07c.tar.xz
webtools.dali-9ef8eb7e39d4b67a2ea6f3ea0fa955ce3130d07c.zip
fix NPE in JPAEditorUtil.checkJPAFacetVersionR3_6_1R3_6_0
-rw-r--r--jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java
index 93c6f3fb8c..e9f8543385 100644
--- a/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java
+++ b/jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui/src/org/eclipse/jpt/jpadiagrameditor/ui/internal/util/JPAEditorUtil.java
@@ -1318,6 +1318,9 @@ public class JPAEditorUtil {
}
static public boolean checkJPAFacetVersion(JpaProject jpaProject, String version) {
+ if(jpaProject == null && version == JPAEditorUtil.JPA_PROJECT_FACET_10){
+ return true;
+ }
return checkJPAFacetVersion(jpaProject.getProject(), version);
}

Back to the top