From 27faf1dd6c56248be1b0baf6722c63c413fe722a Mon Sep 17 00:00:00 2001 From: "jungwook.ryu" Date: Thu, 26 Jun 2014 14:35:21 +0900 Subject: [PATCH] timeline : fix null pointer exception when save/load Change-Id: I307b0beeaa7a6af8215e745c035a3ff8c0df026a Signed-off-by: jungwook.ryu --- .../dynamicanalyzer/ui/timeline/common/TimelineChartManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineChartManager.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineChartManager.java index 713b936..86e29f8 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineChartManager.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineChartManager.java @@ -680,7 +680,7 @@ public class TimelineChartManager extends PageDataManager implements String where = "where TIME BETWEEN " + start + " AND " + end + " ORDER BY " + CPUDBTable.TIME; List> queryResult = cpuDBTable.selectData(null, where); - if (queryResult == null) { + if (queryResult == null || AnalyzerManager.getProject() == null) { return processedResult; } @@ -731,7 +731,7 @@ public class TimelineChartManager extends PageDataManager implements String where = "where TIME BETWEEN " + start + " AND " + end + " ORDER BY " + EnergyDBTable.TIME; List> queryResult = energyDBTable.selectData(null, where); - if (queryResult == null) { + if (queryResult == null || AnalyzerManager.getProject() == null) { return processedResult; } -- 2.7.4