In order to remove any null pointer exceptions while using RestEasy Annotations, you can always pass a default value and handle it appropriately in the Data Access Objects ( If you are using one. This ensures that there are no null pointer excpetions from the returning classes.
Here is a code snippet to do just this:
public StreamingOutput getUsersSummaryList(@QueryParam("active") @DefaultValue("0") String active ){}
Here is a code snippet to do just this:
public StreamingOutput getUsersSummaryList(@QueryParam("active") @DefaultValue("0") String active ){}
Leave a comment