Skip to content

Null pointer exception in end to end flow instantiation #2287

@stevevestal

Description

@stevevestal

Summary

When I instantiate System Impl Example.Low in the attached model, a popup appears with subject message. There are no error markers on the model before instantiation. No other errors appear as markers or in the Problems tab. This behavior repeats after repeated project cleans.

Expected and Current Behavior

I would expect it to either instantiate without the popup notice or issue a more informative error message with markers on the instance file or AADL model.

Steps to Reproduce

Model attached

package Refinement
public
	
	feature group HighLevel
	end HighLevel;
	
	system HighLeft
		features
			outgroup: feature group HighLevel;
		flows
			outflow: flow source outgroup;
	end HighLeft;
	
	system HighRight
		features
			ingroup: feature group inverse of HighLevel;
		flows
			inflow: flow sink ingroup;			
	end HighRight;	
	
	system Example
	end Example;
	
	system implementation Example.High
		subcomponents
			left: system HighLeft;
			right: system HighRight;
--		connections
--			lr: feature left.outgroup -> right.ingroup;
--		flows
--			leftright: end to end flow left.outflow -> lr -> right.inflow;
	end Example.High;
	
	feature group LowLevel extends HighLevel
		features
			msg1: feature;
			msg2: feature;
	end LowLevel;
	
	system LowLeft extends HighLeft
		features
			outgroup: refined to feature group LowLevel{ Classifier_Substitution_Rule => Type_Extension; };
		flows
			outflow: refined to flow source; -- outgroup;
	end LowLeft;
	
	system LowRight extends HighRight
		features
			ingroup: refined to feature group inverse of LowLevel{ Classifier_Substitution_Rule => Type_Extension; };
		flows
			inflow: refined to flow sink; -- ingroup;			
	end LowRight;		
	
	system implementation Example.Low extends Example.High
		subcomponents
			left: refined to system LowLeft{ Classifier_Substitution_Rule => Type_Extension; };
			right: refined to system LowRight{ Classifier_Substitution_Rule => Type_Extension; };			
		connections
			lr1: feature left.outgroup.msg1 -> right.ingroup.msg1;
		flows
			leftright1: end to end flow left.outflow -> lr1 -> right.inflow;
	end Example.Low;
	
end Refinement;

Environment

  • OSATE Version: 2.7.0 vfinal build 2020-02-04
  • Operating System: Windows 10

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions