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

null pointer exceptions raised when annotation panel is visible but no annotations are present on alignment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: Datamodel, gui
    • Labels:
      None

      Description

      Null pointer exception messages like this:
      ption in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at jalview.gui.AnnotationLabels.mouseMoved(AnnotationLabels.java:391)
      at java.awt.AWTEventMulticaster.mouseMoved(Unknown Source)

      ..
      Seem to have been introduced with the 2.5 release - when its easy to have the situation where the annotation panel is displayed, but no automated annotations are visible. Even worse, with the console blocking bug, Jalview blocks when lots of these exceptions are raised, making it unusable.

      Need to go through code to check that alignment.getAnnotations() is always verfied non-null prior to being used.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: