Skip to content

Commit

Permalink
fix NullPointerException if userid not found for recover account
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 9, 2024
1 parent 12eff98 commit fcff0a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 45 deletions.
45 changes: 0 additions & 45 deletions vcell-rest/src/main/java/org/vcell/restq/db/SMTPService.java

This file was deleted.

3 changes: 3 additions & 0 deletions vcell-rest/src/main/java/org/vcell/restq/db/UserRestDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ private Date getNewExpireDate() {
public UserInfo getUserInfo(String userID) throws SQLException, DataAccessException {
try {
User user = adminDBTopLevel.getUser(userID, true);
if (user == null){
return null;
}
return adminDBTopLevel.getUserInfo(user.getID(), true);
} catch (ObjectNotFoundException e) {
return null;
Expand Down

0 comments on commit fcff0a0

Please sign in to comment.