Skip to content

Commit

Permalink
avoid NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Dec 6, 2013
1 parent 318542f commit b4b4439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/java/io/hawt/system/Authenticator.java
Expand Up @@ -67,7 +67,7 @@ public void getAuthInfo(String userName, String password) {
}
});

if (info.username.equals("public")) {
if (info.username == null || info.username.equals("public")) {
return AuthenticateResult.NO_CREDENTIALS;
}

Expand Down

0 comments on commit b4b4439

Please sign in to comment.