Deal gracefully with having no component classes or actions.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1817 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-10-18 23:47:27 +00:00
parent dda1039dc0
commit 5d7123caab
@@ -1,5 +1,5 @@
//
// $Id: BundledComponentRepository.java,v 1.18 2002/09/17 19:11:13 mdb Exp $
// $Id: BundledComponentRepository.java,v 1.19 2002/10/18 23:47:27 shaper Exp $
package com.threerings.cast.bundle;
@@ -128,6 +128,15 @@ public class BundledComponentRepository
throw new NestableIOException(
"Internal error unserializing metadata", cnfe);
}
// if we failed to load our classes or actions, create empty
// hashtables so that we can safely enumerate our emptiness
if (_actions == null) {
_actions = new HashMap();
}
if (_classes == null) {
_classes = new HashMap();
}
}
// documentation inherited