- String bundleSymbolicName = installBundleNames.get(i)
- .toString();
- try {
- startBundle(context, bundleSymbolicName);
- } catch (Exception e) {
- bundleInstallWarn(e.getMessage());
+ Object obj = installBundleNames.get(i);
+ if (obj != null) {
+ String bundleSymbolicName = obj.toString();
+ try {
+ startBundle(context, bundleSymbolicName);
+ } catch (Exception e) {
+ bundleInstallWarn("Cannot start " + bundleSymbolicName
+ + ": " + e.getMessage());
+ }