add try-catch to filter application

This commit is contained in:
Eyck Jentzsch 2020-03-11 07:35:31 +01:00
parent 97443c6cd8
commit 594a71a9ba
1 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import java.beans.PropertyChangeListener;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.List;
import java.util.regex.PatternSyntaxException;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
@ -469,7 +470,10 @@ public class DesignBrowser {
return true;
}
IWaveform p = (IWaveform) element;
if (p.getName().matches(searchString)) {
try {
if (p.getName().matches(searchString))
return true;
} catch (PatternSyntaxException e) {
return true;
}
return false;