Skip to content

Commit da3248a

Browse files
committed
Issue #54 - Fixed possible NPE in getEffectiveParameters.
1 parent 9169e61 commit da3248a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
40 Bytes
Binary file not shown.

org.modeldriven.alf/src/org/modeldriven/alf/execution/AlfBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
public abstract class AlfBase {
2626

27-
public static final String ALF_VERSION = "1.1.0a";
27+
public static final String ALF_VERSION = "1.1.0a/maint-3";
2828

2929
protected boolean isVerbose = false;
3030

org.modeldriven.alf/src/org/modeldriven/alf/syntax/common/impl/ElementReferenceImpl.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ public List<ElementReference> getEffectiveParameters() {
175175
} else {
176176
List<ElementReference> parameters = new ArrayList<ElementReference>();
177177
if (this.isReception()){
178-
for (ElementReference property: this.getSignal().getImpl().getAttributes()) {
179-
parameters.add(parameterFromProperty(property).getImpl().getReferent());
178+
ElementReference signal = this.getSignal();
179+
if (signal != null) {
180+
for (ElementReference property: signal.getImpl().getAttributes()) {
181+
parameters.add(parameterFromProperty(property).getImpl().getReferent());
182+
}
180183
}
181184
} else if (this.isDataType() || this.isSignal()){
182185
for (ElementReference property: this.getAttributes()) {

0 commit comments

Comments
 (0)