Skip to content

Commit

Permalink
Add mowe skwipts
Browse files Browse the repository at this point in the history
  • Loading branch information
AyhamAl-Ali committed Mar 31, 2024
1 parent 8d188c3 commit fe5875e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/doc/HTMLGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ private static String cleanPatterns(final String patterns, boolean escapeHTML) {
* @param message the String to return if either condition is true
*/
public String getDefaultIfNullOrEmpty(@Nullable String string, String message) {
return (string == null || string.isEmpty()) ? message : string; // Null check first otherwise NullPointerException is thrown
return (string == null || string.isEmpty()) ? introduceSkwipt(message) : introduceSkwipt(string); // Null check first otherwise NullPointerException is thrown
}

public String[] getDefaultIfNullOrEmpty(@Nullable String[] string, String message) {
Expand Down

0 comments on commit fe5875e

Please sign in to comment.