Skip to content

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

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

Closed
Etienne13 opened this issue Nov 15, 2020 · 0 comments · Fixed by #2526
Assignees
Milestone

Comments

@Etienne13
Copy link
Contributor

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
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