From 4862311e28b8ad808f874f0e3baa12428477271d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 1 Jul 2003 21:56:10 +0000 Subject: [PATCH] Not to NPE if we get back no resource bundles. This would be a catastrophic fuckola, but we can wait until later to freak out. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2690 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/cast/bundle/BundledComponentRepository.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/cast/bundle/BundledComponentRepository.java b/src/java/com/threerings/cast/bundle/BundledComponentRepository.java index 6361e54e6..884d800ba 100644 --- a/src/java/com/threerings/cast/bundle/BundledComponentRepository.java +++ b/src/java/com/threerings/cast/bundle/BundledComponentRepository.java @@ -1,5 +1,5 @@ // -// $Id: BundledComponentRepository.java,v 1.27 2003/04/27 06:43:51 mdb Exp $ +// $Id: BundledComponentRepository.java,v 1.28 2003/07/01 21:56:10 mdb Exp $ package com.threerings.cast.bundle; @@ -90,7 +90,8 @@ public class BundledComponentRepository // look for our metadata info in each of the bundles try { - for (int i = 0; i < rbundles.length; i++) { + int rcount = (rbundles == null) ? 0 : rbundles.length; + for (int i = 0; i < rcount; i++) { if (_actions == null) { _actions = (HashMap)BundleUtil.loadObject( rbundles[i], BundleUtil.ACTIONS_PATH);