null pointer in wrapped mode, click near sequence
authoramwaterhouse <Andrew Waterhouse>
Thu, 8 Dec 2005 11:54:24 +0000 (11:54 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 8 Dec 2005 11:54:24 +0000 (11:54 +0000)
src/jalview/gui/IdPanel.java

index 8ff3df2..bb6efd7 100755 (executable)
@@ -163,6 +163,9 @@ public class IdPanel extends JPanel implements MouseListener,
 \r
       //DEFAULT LINK IS FIRST IN THE LINK LIST\r
       int seq = av.getIndex(y);\r
+      if(seq==-1)\r
+        return;\r
+\r
       String id = av.getAlignment().getSequenceAt(seq).getName();\r
       if (id.indexOf("|") > -1)\r
         id = id.substring(id.lastIndexOf("|") + 1);\r