From 0705a85fe0a3d391e5aba360340a0c342c898366 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 8 Dec 2005 11:54:24 +0000 Subject: [PATCH] null pointer in wrapped mode, click near sequence --- src/jalview/gui/IdPanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index 8ff3df2..bb6efd7 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -163,6 +163,9 @@ public class IdPanel extends JPanel implements MouseListener, //DEFAULT LINK IS FIRST IN THE LINK LIST int seq = av.getIndex(y); + if(seq==-1) + return; + String id = av.getAlignment().getSequenceAt(seq).getName(); if (id.indexOf("|") > -1) id = id.substring(id.lastIndexOf("|") + 1); -- 1.7.10.2