Author: rob.stryker(a)jboss.com
Date: 2007-08-01 11:11:11 -0400 (Wed, 01 Aug 2007)
New Revision: 2803
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServer.java
Log:
Moved try/catch to ensure lack of catastrophic failure
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServer.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServer.java 2007-08-01
12:05:55 UTC (rev 2802)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossServer.java 2007-08-01
15:11:11 UTC (rev 2803)
@@ -197,13 +197,13 @@
}
protected int findPort(IPath path) {
- XPathQuery query = XPathModel.getDefault().getQuery(this, path);
- String result = query.getFirstResult();
- if( result != null ) {
- try {
- return Integer.parseInt(result);
- } catch( Exception e ) {}
- }
+ try {
+ XPathQuery query = XPathModel.getDefault().getQuery(this, path);
+ String result = query.getFirstResult();
+ if( result != null ) {
+ return Integer.parseInt(result);
+ }
+ } catch( Exception e ) {}
return -1;
}
Show replies by date