import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.project.BinaryInfo;
import org.tizen.dynamicanalyzer.project.LibraryObject;
+import org.tizen.dynamicanalyzer.project.ProcessInformation;
import org.tizen.dynamicanalyzer.project.ProcessMemoryMap;
import org.tizen.dynamicanalyzer.project.Project;
import org.tizen.dynamicanalyzer.protocol.ProtocolConstants;
import org.tizen.dynamicanalyzer.ui.timeline.TargetProcessDBTable;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineConstants;
import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
+import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
import org.tizen.dynamicanalyzer.utils.Formatter;
import org.tizen.dynamicanalyzer.widgets.chart.DAChart;
Project project = Global.getProject();
List<BinarySettingData> binDataList = BinarySettingManager.getInstance()
.getBinarySettingList();
- ProcessMemoryMap pmap = project.getProcessInformation(pid).getProcessMemoryMap(
- Toolbar.INSTANCE.getTime());
+
+ ProcessInformation pinfo = project.getProcessInformation(pid);
+ if (pinfo == null) {
+ Logger.error("ProcessInformation is Null!! Invalid PID : " + pid );
+ return null;
+ }
+ ProcessMemoryMap pmap = pinfo.getProcessMemoryMap(Toolbar.INSTANCE.getTime());
if (pmap != null) {
for (BinarySettingData binData : binDataList) {
String libraryPath = binData.getBinaryPath();
*/
if (seriesPerProcessMap.isEmpty()) {
Map<Integer, DAChartSeries> seriesMap = createChartSeries(pid);
+ if (seriesMap == null) {
+ Logger.error("Invalid PID : " + pid);
+ return;
+ }
seriesPerProcessMap.put(pid, seriesMap);
setChartSeries(chart, seriesMap);
final String processName = AnalyzerUtil.getProcessName(pid.intValue());
*/
else if (seriesPerProcessMap.get(pid) == null) {
final Map<Integer, DAChartSeries> seriesMap = createChartSeries(pid);
+ if (seriesMap == null) {
+ Logger.error("Invalid PID : " + pid);
+ return;
+ }
seriesPerProcessMap.put(pid, seriesMap);
Display.getDefault().syncExec(new Runnable() {
@Override
Iterator<Integer> iterProcessData = processDataMap.keySet().iterator();
while (iterProcessData.hasNext()) {
final Integer pid = iterProcessData.next();
-
+ final String processName = AnalyzerUtil.getProcessName(pid.intValue());
+ if (processName == null) {
+ return;
+ }
/*
* First process, use parentBoardItem.
*/
final DAChartBoardItem curBoard = processChartboardMap.get(pid);
String oldProcessName = processNameMap.get(pid);
- final String processName = AnalyzerUtil.getProcessName(pid.intValue());
if (oldProcessName == null || !oldProcessName.equals(processName)) {
curBoard.getChart().setInformation(processName + " / PID : " + pid.intValue());
}