git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c16c8
)
null pointer in wrapped mode, click near sequence
author
amwaterhouse
<Andrew Waterhouse>
Thu, 8 Dec 2005 11:54:24 +0000
(11:54 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 8 Dec 2005 11:54:24 +0000
(11:54 +0000)
src/jalview/gui/IdPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/IdPanel.java
b/src/jalview/gui/IdPanel.java
index
8ff3df2
..
bb6efd7
100755
(executable)
--- a/
src/jalview/gui/IdPanel.java
+++ b/
src/jalview/gui/IdPanel.java
@@
-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