Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
reduce logging and fix potential NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Mar 17, 2014
1 parent 1b92661 commit 06c3c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -42,7 +42,7 @@ public class AuthenticationEvents implements Serializable {

@Observer(JpaIdentityStore.EVENT_USER_AUTHENTICATED)
public void loginSuccessful(HAccount account) {
log.info("Account {} authenticated", account.getUsername());
log.debug("Account {} authenticated", account.getUsername());
injectAuthenticatedPersonIntoWorkingMemory(account);
}

Expand Down
Expand Up @@ -170,7 +170,7 @@ public Response getTranslations(String idNoSlash, LocaleId locale,

HDocument document =
documentDAO.getByDocIdAndIteration(hProjectIteration, id);
if (document.isObsolete()) {
if (document == null || document.isObsolete()) {
return Response.status(Status.NOT_FOUND).build();
}

Expand Down

0 comments on commit 06c3c79

Please sign in to comment.