Do the right thing with a null _listeners array.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@441 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-12 00:29:06 +00:00
parent 5ae6875bbb
commit 2ffe47e282
@@ -1,5 +1,5 @@
//
// $Id: DObject.java,v 1.29 2001/10/12 00:05:31 mdb Exp $
// $Id: DObject.java,v 1.30 2001/10/12 00:29:06 mdb Exp $
package com.threerings.presents.dobj;
@@ -301,6 +301,11 @@ public class DObject
*/
public void notifyListeners (DEvent event)
{
// if we have no listeners, we're home free
if (_listeners == null) {
return;
}
// iterate over the listener list, performing the necessary
// notifications
int llength = _listeners.length;