Skip to content

Commit

Permalink
Merge pull request #27697: Change thrown exception for checkStateNotN…
Browse files Browse the repository at this point in the history
…ull to IllegalStateException
  • Loading branch information
kennknowles authored Aug 1, 2023
2 parents 4bf39bb + 09903e6 commit ab93fb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public class Preconditions {
@Nullable String errorMessageTemplate,
@Nullable Object... errorMessageArgs) {
if (obj == null) {
throw new IllegalArgumentException(lenientFormat(errorMessageTemplate, errorMessageArgs));
throw new IllegalStateException(lenientFormat(errorMessageTemplate, errorMessageArgs));
}
return obj;
}
Expand Down

0 comments on commit ab93fb1

Please sign in to comment.