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:
33d2975
)
bugfix
author
jprocter
<Jim Procter>
Fri, 21 Dec 2007 14:59:52 +0000
(14:59 +0000)
committer
jprocter
<Jim Procter>
Fri, 21 Dec 2007 14:59:52 +0000
(14:59 +0000)
src/jalview/datamodel/Mapping.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Mapping.java
b/src/jalview/datamodel/Mapping.java
index
e54b53e
..
fcb9ed3
100644
(file)
--- a/
src/jalview/datamodel/Mapping.java
+++ b/
src/jalview/datamodel/Mapping.java
@@
-219,6
+219,11
@@
public class Mapping
if (map != null)
{
int[] frange = map.locateInFrom(f.getBegin(), f.getEnd());
+ if (frange==null)
+ {
+ // JBPNote - this isprobably not the right thing to doJBPHack
+ return null;
+ }
SequenceFeature[] vf = new SequenceFeature[frange.length / 2];
for (int i = 0, v = 0; i < frange.length; i += 2, v++)
{