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);