You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2021. It is now read-only.
Should null arguments be reported as an ApiException or as a NullPointerException (NPE)?
Should the exception be logged?
Currently, the sanity checkers throw an NPE, which is not logged. But RemoteOutletManagerImpl.publishOutlet logs the NPE for a null outlet. So that method throws a logged NPE if the outlet is null, but an unlogged NPE if the ticket token is null. Decide on one behavior, then implement that consistently across the remote API of the server.
If the behavior of the sanity checkers changes, this will affect the Socket-based server, too.
The text was updated successfully, but these errors were encountered:
follow-up from #11:
Currently, the sanity checkers throw an NPE, which is not logged. But
RemoteOutletManagerImpl.publishOutlet
logs the NPE for a null outlet. So that method throws a logged NPE if the outlet is null, but an unlogged NPE if the ticket token is null. Decide on one behavior, then implement that consistently across the remote API of the server.If the behavior of the sanity checkers changes, this will affect the Socket-based server, too.
The text was updated successfully, but these errors were encountered: