NPE on PubSubEngine#shutdown on server shutdown

Description

when restarting OpenFire 3.9.1 via "service openfire restart" on a Debian7 System it gives an exception:

2014.02.20 19:34:50 org.jivesoftware.openfire.XMPPServer - Exception during module shutdown java.lang.NullPointerException at org.jivesoftware.openfire.pubsub.PubSubEngine.shutdown(PubSubEngine.java:1743) at org.jivesoftware.openfire.pep.PEPServiceManager.stop(PEPServiceManager.java:208 ) at org.jivesoftware.openfire.pep.IQPEPHandler.stop(IQPEPHandler.java:202) at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:979) at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:148) at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:925 )

It seems that

service.getManager()

returns a NullPointer, on which then .stop() is called.

Environment

None

Activity

Show:

Tom Evans April 25, 2014 at 11:26 PM

Added check for null service reference as well as null manager reference.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created February 22, 2014 at 1:03 PM
Updated April 25, 2014 at 11:26 PM
Resolved April 25, 2014 at 11:26 PM

Flag notifications