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

Goals with names that don't follow the defined patterns cause problemas in PRISM model generations #6

Open
gabrielsr opened this issue Apr 21, 2015 · 1 comment

Comments

@gabrielsr
Copy link

How should bad named goals be handled?

Even if a pattern are not visible in the model but present it causes the following error.

Stracktrace
java.lang.NullPointerException
at br.unb.cic.rtgoretoprism.model.kl.RTContainer.compareTo(RTContainer.java:361)
at br.unb.cic.rtgoretoprism.model.kl.RTContainer.compareTo(RTContainer.java:1)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:316)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:184)
at java.util.Arrays.sort(Arrays.java:1246)
at java.util.Arrays.sort(Arrays.java:1433)
at java.util.List.sort(List.java:478)

@gabrielsr gabrielsr changed the title NullPointerException generating model (at RTContainer.compareTo) Goals with names that don't follow the defined patterns cause problemas in PRISM model generations Apr 21, 2015
@danilomendonca
Copy link

Good question. We may present a message informing the user of the malformated goal/task name.

Further improvements on how the framework deals with goals ids are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants