Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-05-31 09:19:49 -0400
committerUwe Stieber2012-05-31 09:20:30 -0400
commit033a62dc721b587a5b60ee04f498f264a38ae3d0 (patch)
tree72920e8f41b247a4b10ee0a2d4d9155c3ec5e11b /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src
parentdfa50df075099c07a30bac35462562789e66fc8b (diff)
downloadorg.eclipse.tcf-033a62dc721b587a5b60ee04f498f264a38ae3d0.tar.gz
org.eclipse.tcf-033a62dc721b587a5b60ee04f498f264a38ae3d0.tar.xz
org.eclipse.tcf-033a62dc721b587a5b60ee04f498f264a38ae3d0.zip
Target Explorer: Findbugs fixes
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
index bed754c4d..efe020455 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
@@ -47,7 +47,7 @@ public class FileTransferItem extends PropertiesContainer implements IFileTransf
*/
@Override
public IPath getHostPath() {
- return new Path(getStringProperty(PROPERTY_HOST));
+ return getStringProperty(PROPERTY_HOST) != null ? new Path(getStringProperty(PROPERTY_HOST)) : null;
}
/* (non-Javadoc)
@@ -55,7 +55,7 @@ public class FileTransferItem extends PropertiesContainer implements IFileTransf
*/
@Override
public IPath getTargetPath() {
- return new Path(getStringProperty(PROPERTY_TARGET));
+ return getStringProperty(PROPERTY_TARGET) != null ? new Path(getStringProperty(PROPERTY_TARGET)) : null;
}
/* (non-Javadoc)

Back to the top