Skip to content

Commit 2bb4c2f

Browse files
committed
Fix flow actions causing null pointer exception in some cases
1 parent 29a159a commit 2bb4c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradleutils-shared/src/main/java/net/minecraftforge/gradleutils/shared/EnhancedFlowAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected EnhancedFlowAction() { }
8181
/// @return If the throwable's message contains the string
8282
protected static boolean contains(Throwable e, String s) {
8383
for (Throwable cause = e; cause != null; cause = cause.getCause()) {
84-
if (StringGroovyMethods.containsIgnoreCase(cause.getMessage(), s))
84+
if (StringGroovyMethods.containsIgnoreCase(s, cause.getMessage()))
8585
return true;
8686
}
8787

0 commit comments

Comments
 (0)