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;
}