incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r889621 - /incubator/kato/trunk/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
Date Fri, 11 Dec 2009 13:54:32 GMT
Author: monteith
Date: Fri Dec 11 13:54:31 2009
New Revision: 889621

URL: http://svn.apache.org/viewvc?rev=889621&view=rev
Log:
Fix NPE in HProfView.

Modified:
    incubator/kato/trunk/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java?rev=889621&r1=889620&r2=889621&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
Fri Dec 11 13:54:31 2009
@@ -86,6 +86,8 @@
 		LinkedList<IJavaClass> loadedClassesRecordNO = new LinkedList<IJavaClass>();
 		LinkedList<IJavaThread> threadRecordNO = new LinkedList<IJavaThread>();
 		LinkedList<Integer> javastacks = new LinkedList<Integer>();
+		idToLocationMap = new IDToLocationHashMapper();
+
 		recordSummary=new ClassSummary();
 
 		int heapRecordNo=0;
@@ -149,7 +151,6 @@
 				heapRecord=(IHeapDumpHProfRecord) record;
 				heapRecordNo=r;
 
-				idToLocationMap = new IDToLocationHashMapper();
 				summariseHeap(heapRecord);
 			}
 			r++;



Mime
View raw message