Author: rob.stryker(a)jboss.com
Date: 2007-08-23 14:42:34 -0400 (Thu, 23 Aug 2007)
New Revision: 3307
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServerLaunchConfiguration.java
Log:
null pointer if user did not set a username or password
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServerLaunchConfiguration.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServerLaunchConfiguration.java 2007-08-23
18:39:22 UTC (rev 3306)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServerLaunchConfiguration.java 2007-08-23
18:42:34 UTC (rev 3307)
@@ -159,9 +159,9 @@
String args = configuration.getAttribute(argsKey, (String)null);
String user = ArgsUtil.getValue(args, "-u", "--user");
String pass = ArgsUtil.getValue(args, "-p", "--password");
- if( user == null )
+ if( user == null && server.getUsername() != null &&
!server.getUsername().equals(""))
args = args + " -u " + server.getUsername();
- if( pass == null )
+ if( pass == null && server.getPassword() != null &&
!server.getPassword().equals(""))
args = args + " -p " + server.getPassword();
configuration.setAttribute(argsKey, args);
Show replies by date