[jboss-cvs] JBoss Profiler SVN: r501 - branches/JBossProfiler2/src/main/org/jboss/profiler/agent.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 24 09:30:05 EST 2008
Author: jesper.pedersen
Date: 2008-11-24 09:30:05 -0500 (Mon, 24 Nov 2008)
New Revision: 501
Modified:
branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java
Log:
Fixed NPE in allocation
Modified: branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java
===================================================================
--- branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java 2008-11-21 17:25:59 UTC (rev 500)
+++ branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java 2008-11-24 14:30:05 UTC (rev 501)
@@ -223,12 +223,13 @@
FrameInfo fi = activeFrame;
// Constructor delegation
- MethodInfo mi = MethodRepository.getInstance().getInfo(fi.getMethod());
- if (fi != null && mi.getClassName().equals(className)
- && "<init>".equals(mi.getMethodName())) {
- return;
+ if (fi != null) {
+ MethodInfo mi = MethodRepository.getInstance().getInfo(fi.getMethod());
+ if (mi.getClassName().equals(className) && "<init>".equals(mi.getMethodName())) {
+ return;
+ }
}
-
+
AllocationInfo ai = allocationMap.get(className);
if (ai == null) {
More information about the jboss-cvs-commits
mailing list