From: jprocter Date: Thu, 4 Dec 2008 10:22:16 +0000 (+0000) Subject: minimise exceptions for bad uniprot ids X-Git-Tag: Release_2_5~394 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=977dee6b8ae7d8eec93fe0e895993aae12d99372;p=jalview.git minimise exceptions for bad uniprot ids --- diff --git a/src/jalview/ws/dbsources/Uniprot.java b/src/jalview/ws/dbsources/Uniprot.java index ab0b10c..f7773d8 100644 --- 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);