You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/17 10:07:51 UTC

[GitHub] [pulsar] Technoboy- opened a new issue #8079: Use if to avoid throwing NPE

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:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui closed issue #8079: Use if to avoid throwing NPE

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #8079:
URL: https://github.com/apache/pulsar/issues/8079


   


----------------------------------------------------------------
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:
users@infra.apache.org