[jbosstools-commits] JBoss Tools SVN: r30537 - trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Apr 12 16:42:17 EDT 2011
Author: bbrodt
Date: 2011-04-12 16:42:17 -0400 (Tue, 12 Apr 2011)
New Revision: 30537
Modified:
trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ReconciliationHelper.java
Log:
https://issues.jboss.org/browse/JBIDE-8305
avoid NPE when a feature is a reference and has no name attribute
Modified: trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ReconciliationHelper.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ReconciliationHelper.java 2011-04-12 20:12:27 UTC (rev 30536)
+++ trunk/bpel/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ReconciliationHelper.java 2011-04-12 20:42:17 UTC (rev 30537)
@@ -701,7 +701,7 @@
if (parent instanceof OnEvent || parent instanceof Catch) {
// ignore attempts to set attributes on the parent that aren't in the model
for ( EStructuralFeature feature : parent.eClass().getEAllStructuralFeatures()) {
- if ( feature.getName().equals(attributeName)) {
+ if ( attributeName.equals(feature.getName())) {
parseElement = ((ExtensibleElement)parent).getElement();
break;
}
More information about the jbosstools-commits
mailing list