sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.memory/src/com/nokia/carbide/cpp/pi/memory/ProfiledLibraryEvent.java
changeset 12 ae255c9aa552
parent 5 844b047e260d
--- 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;
 	}