Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-10-15 08:35:26 -0400
committerTobias Schwarz2013-10-15 08:35:26 -0400
commite33ef1f2d060bf62a2193864633044cc1f40b6a8 (patch)
treea6ad11b7a4dbba70b4491953d8b6868e8a3d87fb /target_explorer
parent9ff5c91040ced5bbf286b21dd1b6584c95c2c006 (diff)
downloadorg.eclipse.tcf-e33ef1f2d060bf62a2193864633044cc1f40b6a8.tar.gz
org.eclipse.tcf-e33ef1f2d060bf62a2193864633044cc1f40b6a8.tar.xz
org.eclipse.tcf-e33ef1f2d060bf62a2193864633044cc1f40b6a8.zip
Target Explorer: fix possible npe
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/PIDLabelProvider.java3
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/StateLabelProvider.java3
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/UserLabelProvider.java3
3 files changed, 6 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/PIDLabelProvider.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/PIDLabelProvider.java
index e84ace6c1..3a65a5bdd 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/PIDLabelProvider.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/PIDLabelProvider.java
@@ -44,7 +44,8 @@ public class PIDLabelProvider extends AbstractLabelProviderDelegate {
Runnable runnable = new Runnable() {
@Override
public void run() {
- pid.set(node.getSysMonitorContext().getPID());
+ if (node.getSysMonitorContext() != null)
+ pid.set(node.getSysMonitorContext().getPID());
}
};
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/StateLabelProvider.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/StateLabelProvider.java
index aedbb0202..29a502616 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/StateLabelProvider.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/StateLabelProvider.java
@@ -40,7 +40,8 @@ public class StateLabelProvider extends AbstractLabelProviderDelegate {
Runnable runnable = new Runnable() {
@Override
public void run() {
- state.set(node.getSysMonitorContext().getState());
+ if (node.getSysMonitorContext() != null)
+ state.set(node.getSysMonitorContext().getState());
}
};
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/UserLabelProvider.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/UserLabelProvider.java
index 72d95717f..5209c5551 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/UserLabelProvider.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/editor/tree/columns/UserLabelProvider.java
@@ -40,7 +40,8 @@ public class UserLabelProvider extends AbstractLabelProviderDelegate {
Runnable runnable = new Runnable() {
@Override
public void run() {
- username.set(node.getSysMonitorContext().getUserName());
+ if (node.getSysMonitorContext() != null)
+ username.set(node.getSysMonitorContext().getUserName());
}
};

Back to the top