Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2011-11-29 16:01:45 +0000
committerUwe Stieber2011-11-29 16:01:45 +0000
commitc914f09385856a7803cc01ee0fb9576f3cfc1fac (patch)
tree4ea63e45f091f2dffa7b259ca22ec6b87401bad6 /target_explorer/plugins/org.eclipse.tcf.te.core
parentda30568b82b051ac1d7a603b9d7b34c809294611 (diff)
downloadorg.eclipse.tcf-c914f09385856a7803cc01ee0fb9576f3cfc1fac.tar.gz
org.eclipse.tcf-c914f09385856a7803cc01ee0fb9576f3cfc1fac.tar.xz
org.eclipse.tcf-c914f09385856a7803cc01ee0fb9576f3cfc1fac.zip
Target Explorer: Fix some NPE's
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.core/src/org/eclipse/tcf/te/core/adapters/ModelNodePersistableAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.core/src/org/eclipse/tcf/te/core/adapters/ModelNodePersistableAdapter.java b/target_explorer/plugins/org.eclipse.tcf.te.core/src/org/eclipse/tcf/te/core/adapters/ModelNodePersistableAdapter.java
index 8a70c3b2e..ec557771b 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.core/src/org/eclipse/tcf/te/core/adapters/ModelNodePersistableAdapter.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.core/src/org/eclipse/tcf/te/core/adapters/ModelNodePersistableAdapter.java
@@ -65,7 +65,7 @@ public class ModelNodePersistableAdapter implements IPersistable {
// If the persistence node name is set, use it and ignore all other possibilities
String persistenceNodeName = node.getStringProperty(IPersistableNodeProperties.PROPERTY_NODE_NAME);
- if (persistenceNodeName != null && !"".equals(node.getName().trim())) { //$NON-NLS-1$
+ if (persistenceNodeName != null && !"".equals(persistenceNodeName.trim())) { //$NON-NLS-1$
path = getRoot().append(makeValidFileSystemName(persistenceNodeName.trim()));
}
// If the persistence name not set, check for the node name

Back to the top