Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in classifier information view #2429

Closed
lwrage opened this issue Sep 2, 2020 · 0 comments · Fixed by #2431
Closed

NPE in classifier information view #2429

lwrage opened this issue Sep 2, 2020 · 0 comments · Fixed by #2431

Comments

@lwrage
Copy link
Contributor

lwrage commented Sep 2, 2020

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

  1. Load model below into editor
  2. Select S.i in outline view
  3. Right click > Open in classifier information view
  4. View is empty
  5. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant