JAL-2482 Bugfix
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 18 Apr 2017 13:44:19 +0000 (14:44 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 18 Apr 2017 13:44:19 +0000 (14:44 +0100)
src/jalview/ws/sifts/SiftsClient.java

index ea65125..13d33df 100644 (file)
@@ -607,6 +607,11 @@ public class SiftsClient implements SiftsClientI
                     .getDbResNum());
           } catch (NumberFormatException nfe)
           {
+            if (pdbRefDb.getDbResNum().equals("null"))
+            {
+              resNum = UNASSIGNED;
+              continue;
+            }
             resNum = (pdbRefDb == null) ? Integer.valueOf(residue
                     .getDbResNum()) : Integer.valueOf(pdbRefDb
                     .getDbResNum().split("[a-zA-Z]")[0]);