JAL-2976 patch NPE when trying to open Uniprot FTS
authorJim Procter <jprocter@issues.jalview.org>
Fri, 4 May 2018 13:37:59 +0000 (14:37 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 4 May 2018 13:37:59 +0000 (14:37 +0100)
src/jalview/fts/core/FTSRestClient.java

index 076e212..f94d455 100644 (file)
@@ -284,7 +284,8 @@ public abstract class FTSRestClient implements FTSRestClientI
               public boolean equals(Object otherObject)
               {
                 FTSDataColumnI that = (FTSDataColumnI) otherObject;
-                return this.getCode().equals(that.getCode())
+                return otherObject == null ? false
+                        : this.getCode().equals(that.getCode())
                         && this.getName().equals(that.getName())
                         && this.getGroup().equals(that.getGroup());
               }