You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GitBox <gi...@apache.org> on 2019/09/08 13:07:01 UTC

[GitHub] [tomcat] alitokmen opened a new pull request #201: Avoid NPE in NamingContextListener.getGlobalNamingContext with Embedded containers

alitokmen opened a new pull request #201: Avoid NPE in NamingContextListener.getGlobalNamingContext with Embedded containers
URL: https://github.com/apache/tomcat/pull/201
 
 
   When the Service is an Embedded service, it doesn't have a Server object when stopping - Which in turn implies that when one uses a Tomcat Embedded server the getGlobalNamingContext also cannot rely on the Server object being present when shutting down. Add a !null check in order to avoid NPEs and hence a clean shutdown.

----------------------------------------------------------------
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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org