sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.memory/src/com/nokia/carbide/cpp/pi/memory/ProfiledLibraryEvent.java
--- a/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.memory/src/com/nokia/carbide/cpp/pi/memory/ProfiledLibraryEvent.java Wed Jun 23 14:49:59 2010 +0300
+++ b/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.memory/src/com/nokia/carbide/cpp/pi/memory/ProfiledLibraryEvent.java Wed Jun 23 15:05:09 2010 +0300
@@ -99,6 +99,11 @@
}
public MemThread getLastMemThread(){
+ if(memSamples.isEmpty()){
+ MemThread mt = new MemThread(-1, "","");
+ mt.maxMemoryItem = new MaxMemoryItem();
+ return mt;
+ }
return memSamples.get(memSamples.lastKey()).thread;
}