Author: snjeza
Date: 2009-02-13 12:44:05 -0500 (Fri, 13 Feb 2009)
New Revision: 13618
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java
Log:
JBIDE-3811 Error calling delegate
RuntimeComponentProviderWrapper[org.jboss.tools.portlet.core.runtimes] exception is
occured while opening New Seam Project Wizard.
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java
===================================================================
---
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java 2009-02-13
16:48:40 UTC (rev 13617)
+++
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java 2009-02-13
17:44:05 UTC (rev 13618)
@@ -30,13 +30,15 @@
.getVersion("1.0"); //$NON-NLS-1$
public List<IRuntimeComponent> getRuntimeComponents(final IRuntime runtime) {
- final File location = runtime.getLocation().toFile();
- final List<IRuntimeComponent> components = new
ArrayList<IRuntimeComponent>();
-
- if (isPortalPresent(location,runtime)) {
- final IRuntimeComponent portalComponent = RuntimeManager
- .createRuntimeComponent(PORTAL_VERSION_1, null);
- components.add(portalComponent);
+ List<IRuntimeComponent> components = new ArrayList<IRuntimeComponent>();
+ if (runtime != null && runtime.getLocation() != null) {
+ File location = runtime.getLocation().toFile();
+
+ if (isPortalPresent(location, runtime)) {
+ final IRuntimeComponent portalComponent = RuntimeManager
+ .createRuntimeComponent(PORTAL_VERSION_1, null);
+ components.add(portalComponent);
+ }
}
return components;
}
Show replies by date