summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorCamilo Bernal2013-07-04 15:49:53 (EDT)
committer Roland Grunberg2013-07-05 10:10:15 (EDT)
commit41125382489fd3ec8c2ecd3ac193999d36973e60 (patch)
tree0ad7a5e2e186bb1359a239dbfee50c611e0d5083
parent2cfac4f836369b160d5bc6f570c2fc356d0217dc (diff)
downloadorg.eclipse.linuxtools-41125382489fd3ec8c2ecd3ac193999d36973e60.zip
org.eclipse.linuxtools-41125382489fd3ec8c2ecd3ac193999d36973e60.tar.gz
org.eclipse.linuxtools-41125382489fd3ec8c2ecd3ac193999d36973e60.tar.bz2
Perf: Fix class cast exception thrown when running StatComparisonViewTestrefs/changes/80/14280/2
Change-Id: I6fc88b4911b29d4e1fa86bc530a6debca03e6169 Reviewed-on: https://git.eclipse.org/r/14280 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java
index b0de15a..1ef0380 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java
@@ -223,7 +223,7 @@ public class StatComparisonView extends ViewPart {
public void dispose() {
super.dispose();
// remove file contents from cache
- if (diffData != null) {
+ if (diffData instanceof StatComparisonData) {
((StatComparisonData) diffData).clearCachedData();
}
}