Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid NPE in NamingContextListener.getGlobalNamingContext with Embedded containers #201

Closed
wants to merge 1 commit into from

Commits on Sep 8, 2019

  1. Avoid NPE in NamingContextListener.getGlobalNamingContext with Embedd…

    …ed containers
    
    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.
    alitokmen committed Sep 8, 2019
    Copy the full SHA
    8bf5b68 View commit details
    Browse the repository at this point in the history