X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FFinder.java;h=72097e0209687a4e4cbdab1c83ea25bb6b7d2447;hb=d9b79c023346253c10dc907d1e75f509823266c4;hp=fe3abe4dde05c9c387e301bc76fecf5b24b3ae08;hpb=b28bddf12e2791a019fba9c233d46407deb65976;p=jalview.git diff --git a/src/jalview/analysis/Finder.java b/src/jalview/analysis/Finder.java index fe3abe4..72097e0 100644 --- a/src/jalview/analysis/Finder.java +++ b/src/jalview/analysis/Finder.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -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; @@ -205,7 +206,7 @@ public class Finder { continue; } -// if invalid string used, then regex has no matched to/from + // if invalid string used, then regex has no matched to/from int sres = seq .findPosition(resIndex + Integer.parseInt(spaces.elementAt(resIndex)