- String fieldData = (doc.get(field.getCode()) == null) ? "" : doc
- .get(field.getCode()).toString();
- if (field.equals(PDBDocField.PDB_ID)
- && doc.get(PDBDocField.PDB_ID.getCode()) != null)
+ String fieldData = (pdbJsonDoc.get(field.getCode()) == null) ? ""
+ : pdbJsonDoc.get(field.getCode()).toString();
+ if (field.equals(PDBDocField.PDB_ID))