Merge branch 'bug/JAL-3166npeAllRowsHidden' into develop
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 28 Feb 2019 15:58:47 +0000 (15:58 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 28 Feb 2019 15:58:47 +0000 (15:58 +0000)
1  2 
src/jalview/gui/IdPanel.java

@@@ -330,8 -330,11 +330,11 @@@ public class IdPanel extends JPane
       *  build a new links menu based on the current links
       *  and any non-positional features
       */
+     List<SequenceFeature> features = null;
+     if (sq != null)
+     {
      List<String> nlinks = Preferences.sequenceUrlLinks.getLinksForMenu();
-     List<SequenceFeature> features = sq.getFeatures().getNonPositionalFeatures();
+       features = sq.getFeatures().getNonPositionalFeatures();
      for (SequenceFeature sf : features)
      {
        if (sf.links != null)
          }
        }
      }
+     }
  
      PopupMenu pop = new PopupMenu(alignPanel, sq, features,
              Preferences.getGroupURLLinks());
      lastid = seq;
  
      SequenceI pickedSeq = av.getAlignment().getSequenceAt(seq);
 -    av.getSelectionGroup().addOrRemove(pickedSeq, true);
 +    av.getSelectionGroup().addOrRemove(pickedSeq, false);
    }
  
    /**
      for (int i = start; i <= end; i++)
      {
        av.getSelectionGroup().addSequence(av.getAlignment().getSequenceAt(i),
 -              i == end);
 +              false);
      }
    }