Skip to content

Commit

Permalink
SMA-91: removed exception handler for NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
markpernia committed Apr 23, 2024
1 parent 54bb257 commit 18e8cd1
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ public ResponseEntity<?> handleMethodArgumentNotValidException(
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(e.getMessage());
}

@ExceptionHandler(NullPointerException.class)
public ResponseEntity<?> handleNullPointerException(NullPointerException e) {
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(e.getMessage());
}

@ExceptionHandler(AuthenticationException.class)
public ResponseEntity<?> handleAuthenticationException(AuthenticationException e) {
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(e.getMessage());
Expand Down

0 comments on commit 18e8cd1

Please sign in to comment.