Adding global constand in non colored net opens wrong dialog

Bug #1932286 reported by Kenneth Yrke Jørgensen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TAPAAL
Fix Committed
Critical
Peter Haahr Taankvist

Bug Description

To reproduce:

  - open an new net without colors enabled.
  - Select new in Global Constants list.

We are not presented with the dialog for adding a new color type.

Opening a new with existing constats and pressing edit will throw an exception:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: class dk.aau.cs.model.tapn.Constant cannot be cast to class dk.aau.cs.model.CPN.ColorType (dk.aau.cs.model.tapn.Constant and dk.aau.cs.model.CPN.ColorType are in unnamed module of loader 'app')

Related branches

Changed in tapaal:
milestone: none → cpn
status: New → Confirmed
importance: Undecided → Critical
Changed in tapaal:
assignee: nobody → Peter Haahr Taankvist (ptaank)
Changed in tapaal:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.