summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/Adapter.java
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-08-26 22:21:17 +0200
committerJose <jose@zeroc.com>2013-08-26 22:21:17 +0200
commit256e1ee3bf33361375744435a734ddb2863086e7 (patch)
treea524b76331761367fcf3134c6203f8ffc5ee9dcf /java/src/IceGridGUI/Application/Adapter.java
parentminor fix (diff)
downloadice-256e1ee3bf33361375744435a734ddb2863086e7.tar.bz2
ice-256e1ee3bf33361375744435a734ddb2863086e7.tar.xz
ice-256e1ee3bf33361375744435a734ddb2863086e7.zip
Fixed (ICE-5406) - IceGridGUI save to file NPE
Diffstat (limited to 'java/src/IceGridGUI/Application/Adapter.java')
-rw-r--r--java/src/IceGridGUI/Application/Adapter.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/java/src/IceGridGUI/Application/Adapter.java b/java/src/IceGridGUI/Application/Adapter.java
index 2b4f21cf2ac..fda47c0c42e 100644
--- a/java/src/IceGridGUI/Application/Adapter.java
+++ b/java/src/IceGridGUI/Application/Adapter.java
@@ -167,8 +167,18 @@ class Adapter extends TreeNode implements DescriptorHolder
attributes.add(createAttribute("name", _descriptor.name));
String oaPrefix = _descriptor.name + ".";
- attributes.add(createAttribute("endpoints", getProperty(oaPrefix + "Endpoints")));
- attributes.add(createAttribute("proxy-options", getProperty(oaPrefix + "ProxyOptions")));
+ String value = getProperty(oaPrefix + "Endpoints");
+ if(value != null && value.length() > 0)
+ {
+ attributes.add(createAttribute("endpoints", value));
+ }
+
+ value = getProperty(oaPrefix + "ProxyOptions");
+ if(value != null && value.length() > 0)
+ {
+ attributes.add(createAttribute("proxy-options", value));
+ }
+
attributes.add(createAttribute("id", _descriptor.id));
if(_descriptor.registerProcess)
{