JAL-1644 added null check for sequence description field
authorCharles Ofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 2 Feb 2015 20:34:32 +0000 (20:34 +0000)
committerCharles Ofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 2 Feb 2015 20:34:32 +0000 (20:34 +0000)
src/jalview/analysis/Finder.java

index 224c60a..c8c8555 100644 (file)
@@ -152,7 +152,8 @@ public class Finder
           }
         }
 
-        if (isIncludeDescription() && regex.search(seq.getDescription()))
+        if (isIncludeDescription() && seq.getDescription() != null
+                && regex.search(seq.getDescription()))
         {
           idMatch.addElement(seq);
           hasResults = true;