Opened 15 years ago

Closed 15 years ago

#1323 closed defect (fixed)

ExtensionsControl.init() doesn't remember the ServletContext parameter

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 2.12.1
Component: web Version:
Keywords: Cc:

Description

This may lead to NullPointerException in any servlet that calls ServletConfig.getServletContext() in it's code. This only happens after a manual or automatic update of an extension. Extensions that are loaded at server startup are not affected since the parameter isn't null at that time.

The fix is simple: Just make sure that the init() method saves the parameter in the private static ServletContext servletContext; variable.

Change History (1)

comment:1 by Nicklas Nordborg, 15 years ago

Resolution: fixed
Status: newclosed

(In [4959]) Fixes #1323: ExtensionsControl.init() doesn't remember the ServletContext parameter

Note: See TracTickets for help on using tickets.