resolved merge conflict
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 1 May 2017 14:16:24 +0000 (15:16 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 1 May 2017 14:16:24 +0000 (15:16 +0100)
1  2 
src/jalview/ws/sifts/SiftsClient.java

@@@ -79,10 -79,6 +79,10 @@@ public class SiftsClient extends Struct
     */
    private static File mockSiftsFile;
  
 +  private static final int UNASSIGNED = StructureMapping.UNASSIGNED; // -1
 +
 +  private static final int PDB_RES_POS = StructureMapping.PDB_RES_NUM_INDEX; // 0
 +
    private Entry siftsEntry;
  
    private String pdbId;
  
    private static final int BUFFER_SIZE = 4096;
  
 -  public static final int UNASSIGNED = -1;
 -
 -  private static final int PDB_RES_POS = 0;
 -
    private static final String NOT_OBSERVED = "Not_Observed";
  
    private static final String SIFTS_FTP_BASE_URL = "http://ftp.ebi.ac.uk/pub/databases/msd/sifts/xml/";
                      .getDbResNum());
            } catch (NumberFormatException nfe)
            {
-             resNum = (pdbRefDb == null) ? Integer.valueOf(residue
-                     .getDbResNum()) : Integer.valueOf(pdbRefDb
+             if (pdbRefDb == null || pdbRefDb.getDbResNum().equals("null"))
+             {
+               resNum = UNASSIGNED;
+               continue;
+             }
+             resNum = Integer.valueOf(pdbRefDb
                      .getDbResNum().split("[a-zA-Z]")[0]);
              continue;
            }