Skip to content

In BA plugin, editor crashes when using a dequeue action on something that is not an event [data] port #2525

@Etienne13

Description

@Etienne13

Summary

After parsing a dequeue action applied to a reference that is not an event [data] port, the type checker fails with a NPE and therefore the aadl editor crashes.

Steps to Reproduce

  1. open the following example
  2. the editor fails because of an error in the BA plugin; i crashes instead of reporting an error
package test_dequeue_data_port

public

  thread t
  features
    d_in: in data port d;
  annex behavior_specification {**
  variables
    v: d;
  states
    s: initial complete final state;
  transitions
    s-[on dispatch]->s
    {
    	d_in?(v);
    	d_in?
    };
  **};
  end t;
  
  
  data d
  end d;

end test_dequeue_data_port;

Environment

  • OSATE Version: 2.9.0
  • Operating System: Ubuntu 18.04

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions