From: amwaterhouse Date: Mon, 3 Oct 2005 11:07:55 +0000 (+0000) Subject: Return if no searchString X-Git-Tag: Release_2_07~69 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=00cdd6a38c70ad1d2b8aff08b2b5be973c28e7f9;p=jalview.git Return if no searchString --- diff --git a/src/jalview/gui/Finder.java b/src/jalview/gui/Finder.java index ec45b0c..ff4fe60 100755 --- a/src/jalview/gui/Finder.java +++ b/src/jalview/gui/Finder.java @@ -181,6 +181,8 @@ public class Finder extends GFinder createNewGroup.setEnabled(false); String searchString = textfield.getText().toUpperCase().trim(); + if(searchString.length()<1) + return; com.stevesoft.pat.Regex regex = new com.stevesoft.pat.Regex(searchString);