Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 3.0
-
Component/s: gui design issue
-
Labels:None
Description
It's easy to raise a NPE from orphaned tree windows: Open an alignment, calculate a tree, then close the alignment window and click in the tree to create subgroups.
Null pointer exceptions are raised like:
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
at jalview.gui.TreeCanvas.setColor(TreeCanvas.java:527)
at jalview.gui.TreeCanvas.setColor(TreeCanvas.java:535)
at jalview.gui.TreeCanvas.setColor(TreeCanvas.java:535)
The reason is clear - closing the window deletes the alignment.
The question is: if all windows on an alignment are closed, should any linked tree windows also be closed ?
Null pointer exceptions are raised like:
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
at jalview.gui.TreeCanvas.setColor(TreeCanvas.java:527)
at jalview.gui.TreeCanvas.setColor(TreeCanvas.java:535)
at jalview.gui.TreeCanvas.setColor(TreeCanvas.java:535)
The reason is clear - closing the window deletes the alignment.
The question is: if all windows on an alignment are closed, should any linked tree windows also be closed ?