From 081bf94cedc43244ab80fa525bedea9403c0f97d Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Wed, 19 Apr 2017 12:19:45 +0100 Subject: [PATCH] JAL-2482 added null check --- src/jalview/ws/sifts/SiftsClient.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 1.7.10.2