Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2014-04-24 07:31:01 -0400
committerIgor Fedorenko2014-04-24 07:31:01 -0400
commit79864201cd3ccad476fb148748ef5ef5ad6f4ec9 (patch)
tree04b74d9d383295478221ed39a6131c1574f1c640 /org.eclipse.m2e.launching
parentd21e7dd535b01081498a889440e286f9f0cc81bf (diff)
downloadm2e-core-79864201cd3ccad476fb148748ef5ef5ad6f4ec9.tar.gz
m2e-core-79864201cd3ccad476fb148748ef5ef5ad6f4ec9.tar.xz
m2e-core-79864201cd3ccad476fb148748ef5ef5ad6f4ec9.zip
432436 fixed 'Argument cannot be null' in launch config dialog
Change-Id: I3fa4f27062c1afd7fe195abae28480a09e2c92dd Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.launching')
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
index 54f06a9a..495d607d 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
@@ -496,7 +496,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
IMavenConfiguration mavenConfiguration = MavenPlugin.getMavenConfiguration();
this.userSettings.setText(getAttribute(configuration, ATTR_USER_SETTINGS, ""));
- this.userSettings.setMessage(mavenConfiguration.getUserSettingsFile());
+ this.userSettings.setMessage(nvl(mavenConfiguration.getUserSettingsFile(), ""));
this.offlineButton.setSelection(getAttribute(configuration, ATTR_OFFLINE, mavenConfiguration.isOffline()));
this.debugOutputButton.setSelection(getAttribute(configuration, ATTR_DEBUG_OUTPUT,
@@ -535,6 +535,10 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
setDirty(false);
}
+ private static String nvl(String str, String nullValue) {
+ return str != null ? str : nullValue;
+ }
+
private String getAttribute(ILaunchConfiguration configuration, String name, String defaultValue) {
try {
return configuration.getAttribute(name, defaultValue);

Back to the top