| commit | c96be3d17a638734f2637e93e514797591120462 | [log] [tgz] |
|---|---|---|
| author | Mark R Russell <mrussell> | Tue Oct 09 15:00:24 2007 +0000 |
| committer | Mark R Russell <mrussell> | Tue Oct 09 15:00:24 2007 +0000 |
| tree | 15b6da4f0ee02ba3200f092f0c3f833b75142ce4 | |
| parent | 28079be4561af070139d810b88dd60be600e3338 [diff] |
fixed potential null pointer exception
diff --git a/plugins/org.eclipse.epp.installer.core/src/org/eclipse/epp/installer/internal/core/eclipse/EclipseProductType.java b/plugins/org.eclipse.epp.installer.core/src/org/eclipse/epp/installer/internal/core/eclipse/EclipseProductType.java index b87aa80..9e67b39 100644 --- a/plugins/org.eclipse.epp.installer.core/src/org/eclipse/epp/installer/internal/core/eclipse/EclipseProductType.java +++ b/plugins/org.eclipse.epp.installer.core/src/org/eclipse/epp/installer/internal/core/eclipse/EclipseProductType.java
@@ -464,9 +464,9 @@ static EclipseVersion readVersionFromPluginDir(File eclipseDir, String pluginDirPrefix) { File pluginsDir = new File(eclipseDir, PLUGINS_DIR_NAME); String[] names = pluginsDir.list(); - Arrays.sort(names); if (names == null) return null; + Arrays.sort(names); for (int i = 0; i < names.length; i++) { String eachName = names[i]; if (eachName.startsWith(pluginDirPrefix)) {