Author: rob.stryker(a)jboss.com
Date: 2010-06-14 07:30:01 -0400 (Mon, 14 Jun 2010)
New Revision: 22783
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
Log:
NPE prevention - trunk
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2010-06-14
11:26:49 UTC (rev 22782)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2010-06-14
11:30:01 UTC (rev 22783)
@@ -198,7 +198,8 @@
}
if(currentQuery != null) {
editXPathButton.setEnabled(true);
- currentValueText.setText(currentQuery.getFirstResult());
+ String result = currentQuery.getFirstResult();
+ currentValueText.setText(result == null ? "" : result);
} else {
}
}
Show replies by date