geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r372861 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
Date Fri, 27 Jan 2006 14:33:58 GMT
Author: sppatel
Date: Fri Jan 27 06:33:51 2006
New Revision: 372861

URL: http://svn.apache.org/viewcvs?rev=372861&view=rev
Log:
fix NPE

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java?rev=372861&r1=372860&r2=372861&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
Fri Jan 27 06:33:51 2006
@@ -119,11 +119,15 @@
 		data.horizontalSpan = 3;
 		label.setLayoutData(data);
 		label.setToolTipText(Messages.tooltipLoc);
-		
-		String currentValue = getRuntimeDelegate().getRuntimeWorkingCopy().getLocation().toOSString();
 
 		installDir = new Text(composite, SWT.BORDER);
-		installDir.setText(currentValue);
+
+		IPath currentLocation = getRuntimeDelegate().getRuntimeWorkingCopy()
+				.getLocation();
+		if (currentLocation != null) {
+			installDir.setText(currentLocation.toOSString());
+		}
+
 		data = new GridData(GridData.FILL_HORIZONTAL);
 		data.horizontalSpan = 2;
 		installDir.setLayoutData(data);
@@ -135,7 +139,7 @@
 				validate();
 			}
 		});
-	
+
 		final Composite browseComp = composite;
 		Button browse = SWTUtil.createButton(composite, Messages.browse);
 		browse.addSelectionListener(new SelectionAdapter() {



Mime
View raw message