JAL-2744 handle null features list
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 4 Oct 2017 10:29:03 +0000 (11:29 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 4 Oct 2017 10:29:03 +0000 (11:29 +0100)
src/jalview/gui/PopupMenu.java

index b574ddd..8e9bade 100644 (file)
@@ -528,7 +528,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
    */
   protected void addFeatureDetails(List<SequenceFeature> features)
   {
-    if (features.isEmpty())
+    if (features == null || features.isEmpty())
     {
       return;
     }