mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
[235577] handle the "" case
This commit is contained in:
parent
f5a5863252
commit
7f0b8e06e2
1 changed files with 20 additions and 2 deletions
|
@ -303,7 +303,16 @@ public class RemoteServerLauncherForm extends RemoteBaseServerLauncherForm
|
||||||
if (launchType == ServerLaunchType.REXEC_LITERAL)
|
if (launchType == ServerLaunchType.REXEC_LITERAL)
|
||||||
{
|
{
|
||||||
String port = getREXECPort();
|
String port = getREXECPort();
|
||||||
int portAsInt = Integer.parseInt(port);
|
|
||||||
|
int portAsInt = 0;
|
||||||
|
if (port != null && port.length() > 0){
|
||||||
|
try {
|
||||||
|
portAsInt = Integer.parseInt(port);
|
||||||
|
}
|
||||||
|
catch (Exception e){
|
||||||
|
portAsInt = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
msg = _rexecPortValidator.validate(port);
|
msg = _rexecPortValidator.validate(port);
|
||||||
|
|
||||||
|
@ -338,7 +347,16 @@ public class RemoteServerLauncherForm extends RemoteBaseServerLauncherForm
|
||||||
{
|
{
|
||||||
String port = getDaemonPort();
|
String port = getDaemonPort();
|
||||||
|
|
||||||
int portAsInt = Integer.parseInt(port);
|
int portAsInt = 0;
|
||||||
|
if (port != null && port.length() > 0){
|
||||||
|
try {
|
||||||
|
portAsInt = Integer.parseInt(port);
|
||||||
|
}
|
||||||
|
catch (Exception e){
|
||||||
|
portAsInt = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
msg = _daemonPortValidator.validate(port);
|
msg = _daemonPortValidator.validate(port);
|
||||||
|
|
||||||
// for daemons we don't allow 0
|
// for daemons we don't allow 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue