Fix NPE in HttpSession when closing the session

Description

Thread: http://www.igniterealtime.org/community/message/164094#164094

2008.03.26 17:06:46 [org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:159)] Could not close socket
org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection@5d06f29a
java.lang.NullPointerException
at org.jivesoftware.openfire.http.HttpSession$Deliverable.getPackets(HttpSession.java:800)
at org.jivesoftware.openfire.http.HttpSession.failDelivery(HttpSession.java:677)
at org.jivesoftware.openfire.http.HttpSession.closeConnection(HttpSession.java:666)
at org.jivesoftware.openfire.http.HttpSession.access$200(HttpSession.java:51)
at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.closeVirtualConnection(HttpSession.java:731)
at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:155)
at org.jivesoftware.openfire.http.HttpSession.close(HttpSession.java:160)
at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:117)
at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:48)
at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:348)
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:100)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67)
at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:99)
at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:60)
at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java:459)
at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.run(HttpSessionManager.java:318)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created March 27, 2008 at 5:56 AM
Updated March 27, 2008 at 6:03 AM
Resolved March 27, 2008 at 6:03 AM