Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2012-07-13 17:15:23 +0000
committerPatrick Tasse2012-07-13 18:58:26 +0000
commitd2a62f4cc8bb132eae225fa3c6de2b13a8ce60ef (patch)
tree7302e24841e37fab40416e47572b68cda4584090
parent8f175a3fc089926a2e3ae2955ae44b63a11a8525 (diff)
downloadorg.eclipse.linuxtools-d2a62f4cc8bb132eae225fa3c6de2b13a8ce60ef.tar.gz
org.eclipse.linuxtools-d2a62f4cc8bb132eae225fa3c6de2b13a8ce60ef.tar.xz
org.eclipse.linuxtools-d2a62f4cc8bb132eae225fa3c6de2b13a8ce60ef.zip
Fix for bug 384637: NullPointerException in ControlFlowView on disposed
experiment during state system build. Change-Id: I26b66db4650404ea06fa1586cf348b0aefd78656
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java4
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
index 8c1aaa0d18..fe9cb3f4c6 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
@@ -434,7 +434,7 @@ public class ControlFlowView extends TmfView {
*/
@TmfSignalHandler
public void synchToTime(final TmfTimeSynchSignal signal) {
- if (signal.getSource() == this || fSelectedExperiment == null) {
+ if (signal.getSource() == this || fSelectedExperiment == null || fSelectedExperiment.getTraces() == null) {
return;
}
final long time = signal.getCurrentTime().normalize(0, -9).getValue();
@@ -534,7 +534,7 @@ public class ControlFlowView extends TmfView {
@TmfSignalHandler
public void stateSystemBuildCompleted (final TmfStateSystemBuildCompleted signal) {
final TmfExperiment<?> selectedExperiment = fSelectedExperiment;
- if (selectedExperiment == null) {
+ if (selectedExperiment == null || selectedExperiment.getTraces() == null) {
return;
}
for (ITmfTrace<?> trace : selectedExperiment.getTraces()) {
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
index c7c522b8d6..b17f5c066f 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
@@ -423,7 +423,7 @@ public class ResourcesView extends TmfView {
@TmfSignalHandler
public void stateSystemBuildCompleted (final TmfStateSystemBuildCompleted signal) {
final TmfExperiment<?> selectedExperiment = fSelectedExperiment;
- if (selectedExperiment == null) {
+ if (selectedExperiment == null || selectedExperiment.getTraces() == null) {
return;
}
for (ITmfTrace<?> trace : selectedExperiment.getTraces()) {

Back to the top