I have an application where rooms are created and shut down on demand and a client can enter and leave rooms as they please. For some reason, at odd times there is an error within the Reactor framework code and I can't seem to emulate it definitely each time. The conditions don't appear to be uniform at this time.
The error is a Null pointer error so I was hoping you could give me some insight into which objects are being referenced at this particular line of code in hopes that this may help me to understand what is happening? Here is the error stack trace:
- Code: Select all
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at net.user1.reactor::Room/purgeRoomData()[/Users/colin/build/working/src/net/user1/reactor/Room.as:2099]
at net.user1.reactor::Room/doLeave()[/Users/colin/build/working/src/net/user1/reactor/Room.as:534]
at CoreMessageListener/u44()[/Users/colin/build/working/src/net/user1/reactor/CoreMessageListener.as:619]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at net.user1.reactor::MessageManager/notifyMessageListeners()[/Users/colin/build/working/src/net/user1/reactor/MessageManager.as:720]
at net.user1.reactor::MessageManager/upcReceivedListener()[/Users/colin/build/working/src/net/user1/reactor/MessageManager.as:293]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at net.user1.reactor::XMLSocketConnection/dataListener()[/Users/colin/build/working/src/net/user1/reactor/XMLSocketConnection.as:219]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::XMLSocket/scanAndSendEvent()
This error doesn't seem to crash the client app but it does pop up often so I'm wondering if I am doing something wrong in terms of room management? This one seems to be out of my control...
Thanks in advance for your time,
Sean T.