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:
729da71
)
minimise exceptions for bad uniprot ids
author
jprocter
<Jim Procter>
Thu, 4 Dec 2008 10:22:16 +0000
(10:22 +0000)
committer
jprocter
<Jim Procter>
Thu, 4 Dec 2008 10:22:16 +0000
(10:22 +0000)
src/jalview/ws/dbsources/Uniprot.java
patch
|
blob
|
history
diff --git
a/src/jalview/ws/dbsources/Uniprot.java
b/src/jalview/ws/dbsources/Uniprot.java
index
ab0b10c
..
f7773d8
100644
(file)
--- a/
src/jalview/ws/dbsources/Uniprot.java
+++ b/
src/jalview/ws/dbsources/Uniprot.java
@@
-116,8
+116,10
@@
public class Uniprot extends DbSourceProxyImpl implements DbSourceProxy
Unmarshaller unmar = new Unmarshaller(uni);
unmar.setIgnoreExtraElements(true);
unmar.setMapping(map);
-
- uni = (UniprotFile) unmar.unmarshal(new FileReader(file));
+ if (file!=null)
+ {
+ uni = (UniprotFile) unmar.unmarshal(new FileReader(file));
+ }
} catch (Exception e)
{
System.out.println("Error getUniprotEntries() " + e);