We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b5a55d + 44a6f98 commit 7fbfe3dCopy full SHA for 7fbfe3d
src/sqlancer/common/query/ExpectedErrors.java
@@ -43,11 +43,17 @@ public ExpectedErrors addRegex(Pattern errorPattern) {
43
}
44
45
public ExpectedErrors addRegexString(String errorPattern) {
46
+ if (errorPattern == null) {
47
+ throw new IllegalArgumentException();
48
+ }
49
regexes.add(Pattern.compile(errorPattern));
50
return this;
51
52
53
public ExpectedErrors addAll(Collection<String> list) {
54
+ if (list == null) {
55
56
57
errors.addAll(list);
58
59
0 commit comments