From 2a8f79f0fe736d40cf6a8aed94d200c23b6a8dde Mon Sep 17 00:00:00 2001 From: Charles Ofoegbu Date: Mon, 2 Feb 2015 20:34:32 +0000 Subject: [PATCH] JAL-1644 added null check for sequence description field --- src/jalview/analysis/Finder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/analysis/Finder.java b/src/jalview/analysis/Finder.java index 224c60a..c8c8555 100644 --- a/src/jalview/analysis/Finder.java +++ b/src/jalview/analysis/Finder.java @@ -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; -- 1.7.10.2