Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-1719

Tree windows remain after alignment windows are closed

    XMLWordPrintable

    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 ?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jprocter James Procter
              Reporter:
              jprocter James Procter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: