From 00cdd6a38c70ad1d2b8aff08b2b5be973c28e7f9 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 3 Oct 2005 11:07:55 +0000 Subject: [PATCH] Return if no searchString --- src/jalview/gui/Finder.java | 2 ++ 1 file changed, 2 insertions(+) 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); -- 1.7.10.2