Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-03-10 18:45:13 +0000
committerAndrew Niefer2010-03-10 18:45:13 +0000
commitd37e8728c008f22efd36b2b3c50b04b636e86772 (patch)
treeb2dba5012425e1acc3d243e83229d12c43fbe647 /bundles/org.eclipse.equinox.simpleconfigurator.manipulator
parent48b26a44bc0e83ca5e21a1eae934ffda869a4e4e (diff)
downloadrt.equinox.p2-d37e8728c008f22efd36b2b3c50b04b636e86772.tar.gz
rt.equinox.p2-d37e8728c008f22efd36b2b3c50b04b636e86772.tar.xz
rt.equinox.p2-d37e8728c008f22efd36b2b3c50b04b636e86772.zip
avoid possible NPEsv20100310-1400
Diffstat (limited to 'bundles/org.eclipse.equinox.simpleconfigurator.manipulator')
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
index a8d85ab79..66de40090 100644
--- a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
+++ b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
@@ -321,7 +321,9 @@ public class SimpleConfiguratorManipulatorImpl implements SimpleConfiguratorMani
}
}
}
- if (stream == null) {
+ if (configURL == null)
+ return new BundleInfo[0];
+ else if (stream == null) {
try {
stream = configURL.openStream();
} catch (FileNotFoundException e) {

Back to the top