Skip to content
Snippets Groups Projects
Commit fd5758ac authored by Simon Eismann's avatar Simon Eismann
Browse files

fixed NPE when influencedVariable has no name

parent 614a6b75
No related branches found
No related tags found
No related merge requests found
......@@ -123,13 +123,16 @@ public class InfluencedVariableReferenceItemProvider
public String getText(Object object) {
InfluencedVariableReference ivr = (InfluencedVariableReference) object;
InfluencableModelVariable influencedVariable = ivr.getInfluencedVariable();
String name = "";
if (influencedVariable != null)
if (influencedVariable != null) {
listenerComponent.tryToUpdateListeners(ivr, influencedVariable);
name = influencedVariable.getName();
}
return getString("_UI_InfluencedVariableReference_type")
+ " " + influencedVariable.getName();
+ " " + name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment