Author: Grid.Qian
Date: 2009-07-21 06:07:32 -0400 (Tue, 21 Jul 2009)
New Revision: 16692
Modified:
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/resource/BPELReader.java
Log:
JBIDE-4637: java.lang.NullPointerException when open a bpel file that only has a
correlationSet element
Modified:
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/resource/BPELReader.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/resource/BPELReader.java 2009-07-21
09:33:20 UTC (rev 16691)
+++
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/resource/BPELReader.java 2009-07-21
10:07:32 UTC (rev 16692)
@@ -607,6 +607,11 @@
protected void setProperties(Element element, EObject eObject, String propertyName) {
String propertyAttribute = element.getAttribute(propertyName);
+ // added by Grid.Qian
+ // we should permit user add a correlation without properties
+ if(propertyAttribute == null){
+ return;
+ }
StringTokenizer st = new StringTokenizer(propertyAttribute);
while (st.hasMoreTokens()) {