From: tcofoegbu Date: Wed, 19 Apr 2017 11:19:45 +0000 (+0100) Subject: JAL-2482 added null check X-Git-Tag: Release_2_10_2~3^2~130 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=081bf94cedc43244ab80fa525bedea9403c0f97d;p=jalview.git JAL-2482 added null check --- diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index 13d33df..c69581f 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -607,13 +607,12 @@ public class SiftsClient implements SiftsClientI .getDbResNum()); } catch (NumberFormatException nfe) { - if (pdbRefDb.getDbResNum().equals("null")) + if (pdbRefDb == null || pdbRefDb.getDbResNum().equals("null")) { resNum = UNASSIGNED; continue; } - resNum = (pdbRefDb == null) ? Integer.valueOf(residue - .getDbResNum()) : Integer.valueOf(pdbRefDb + resNum = Integer.valueOf(pdbRefDb .getDbResNum().split("[a-zA-Z]")[0]); continue; }