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
parentdfa50df075099c07a30bac35462562789e66fc8b (diff)
downloadorg.eclipse.tcf-033a62dc721b587a5b60ee04f498f264a38ae3d0.tar.gz
org.eclipse.tcf-033a62dc721b587a5b60ee04f498f264a38ae3d0.tar.xz
org.eclipse.tcf-033a62dc721b587a5b60ee04f498f264a38ae3d0.zip
Target Explorer: Findbugs fixes
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java4
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/activator/UIPlugin.java2
2 files changed, 3 insertions, 3 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)
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/activator/UIPlugin.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/activator/UIPlugin.java
index e2ac8b473..c6858f87b 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/activator/UIPlugin.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/activator/UIPlugin.java
@@ -106,7 +106,7 @@ public class UIPlugin extends AbstractUIPlugin {
void activateContexts() {
if (Display.getCurrent() != null) {
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- if (window != null) windowListener.windowOpened(window);
+ if (window != null && windowListener != null) windowListener.windowOpened(window);
}
else {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable(){

Back to the top