Technoboy- opened a new issue #8079:
URL: https://github.com/apache/pulsar/issues/8079


   
![image](https://user-images.githubusercontent.com/6297296/93456611-82f35700-f910-11ea-9bab-38fd43d2144c.png)
   For above marked place, we should use if to check NPE to avoid throwing NPE.
   ```
   if (sub == null) {
      asyncResponse.resume(new RestException(Status.NOT_FOUND, "Subscription 
not found"));
      return;
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to