Summary
If a named element (e.g., a flow implementation) has no name the classifier information view throws an NPE and does not display any classifier contents in the right column. An NPE also occurs for unnamed mode transitions.
Expected and Current Behavior
Missing names should be handled:
- If the name is optional a null name should be interpreted as an empty string (mode transitions)
- Use the flow specification name for a flow implementation
Steps to Reproduce
- Load model below into editor
- Select S.i in outline view
- Right click > Open in classifier information view
- View is empty
- Similar for A
package Issue2429
public
system S
features
i: in feature;
o: out feature;
flows
fp: flow path i -> o;
end S;
system implementation S.i
flows
-- NPE when sorting >1 flow implementations
fp: flow path i -> o;
fp: flow path i -> o;
end S.i;
abstract A
features
e: in event port;
modes
-- NPE when sorting modes and transitions
-- with unnamed transition
m1: initial mode;
m2: mode;
m1 -[e]-> m2;
end A;
end Issue2429;
Environment
- OSATE Version: 2.8.0
- Operating System: Win 10, Linux
Summary
If a named element (e.g., a flow implementation) has no name the classifier information view throws an NPE and does not display any classifier contents in the right column. An NPE also occurs for unnamed mode transitions.
Expected and Current Behavior
Missing names should be handled:
Steps to Reproduce
Environment