Skip to content

Commit

Permalink
npe
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 3, 2025
1 parent 32bfc4e commit 57ad9a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ private static String decorateHint(final String text) {
return String.format("[Hint: %s]", text);
}
public static String getUserHint(final Throwable ex) {
if (ex.getMessage().startsWith("Error getting user info for current user")) {
final String message = ex.getMessage();
if (message != null && message.startsWith("Error getting user info for current user")) {
//User does not exist hint
return decorateHint(USER_DOES_NOT_EXIST);
} else {
Expand Down

0 comments on commit 57ad9a1

Please sign in to comment.