don't try to compile empty regex
@@ -59,8 +59,12 @@ public abstract class SettingsService {
public void setIgnoredPattern(String ignoredPattern) {
this.ignoredPattern = ignoredPattern;
+ if (ignoredPattern == null || ignoredPattern.isEmpty()) {
+ this.ignoredPatternObj = null;
+ } else {
this.ignoredPatternObj = compileRegex(ignoredPattern);
}
+ }
@NotNull
public static List<Model> getAllRegisteredModels() {
