Skip to content

Commit

Permalink
Merge pull request #5901 from effective-webwork/3-6-prevent-npe-helper
Browse files Browse the repository at this point in the history
[3.6] prevent npe helper
  • Loading branch information
solth authored Feb 8, 2024
2 parents 356eee2 + 33d2e7c commit ffad151
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ private static String appendUnusedInsertions(String message, String... insertion
StringBuilder messageBuilder = new StringBuilder(message);
for (String insertion : insertions) {
String separator = ": ";
insertion = Objects.toString(insertion);
if (!messageBuilder.toString().contains(insertion)) {
messageBuilder.append(separator).append(insertion);
}
Expand Down

0 comments on commit ffad151

Please sign in to comment.