From: Charles Ofoegbu Date: Mon, 2 Feb 2015 20:34:32 +0000 (+0000) Subject: JAL-1644 added null check for sequence description field X-Git-Tag: Jalview_2_9~99^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2a8f79f0fe736d40cf6a8aed94d200c23b6a8dde;p=jalview.git JAL-1644 added null check for sequence description field --- 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;