Bug 980481 - Check for null __poolMap in the protocol.js unmanage method. r=ochameau

This commit is contained in:
Luca Greco 2014-11-27 05:51:00 -05:00
parent d30bf1dfa8
commit 4915076d8e

View File

@ -770,7 +770,7 @@ let Pool = Class({
* Remove an actor as a child of this pool.
*/
unmanage: function(actor) {
this.__poolMap.delete(actor.actorID);
this.__poolMap && this.__poolMap.delete(actor.actorID);
},
// true if the given actor ID exists in the pool.