This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108123

Summary: [heapwalker] NullPointerException after show instance of a field
Product: profiler Reporter: ehucka <ehucka>
Component: BaseAssignee: issues@profiler <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2007-06-26 11:28:16 UTC
Product Version: NetBeans IDE 6.0M10 (build 200706251444) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b04
System: Linux version 2.6.16-1.2122_FC5 running on i386; UTF-8; en_US (nb)

Steps to reproduction:

1. start debugging of an application on jdk 1.6.0 and higher
2. stop on a breakpoint and open classes view
3. select e.g. java.lang.String class and show its Instances view
4. select an instance, go to Fields view and select e.g. 'value' field
5. invoke Show Instances action

Result:
java.lang.NullPointerException
        at org.netbeans.modules.profiler.heapwalk.HeapFragmentWalker.getActiveController(HeapFragmentWalker.java:111)
        at org.netbeans.modules.profiler.heapwalk.HeapFragmentWalker.getNavigationHistorySource(HeapFragmentWalker.java:151)
        at
org.netbeans.modules.profiler.heapwalk.NavigationHistoryManager.createCurrentHistoryItem(NavigationHistoryManager.java:74)
        at
org.netbeans.modules.profiler.heapwalk.NavigationHistoryManager.createNavigationHistoryPoint(NavigationHistoryManager.java:33)
        at
org.netbeans.modules.profiler.heapwalk.HeapFragmentWalker.createNavigationHistoryPoint(HeapFragmentWalker.java:123)
        at
org.netbeans.modules.profiler.heapwalk.FieldsBrowserController.createNavigationHistoryPoint(FieldsBrowserController.java:110)
        at
org.netbeans.modules.profiler.heapwalk.ui.FieldsBrowserControllerUI$4.actionPerformed(FieldsBrowserControllerUI.java:364)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 1 Jiri Sedlacek 2007-06-26 15:22:52 UTC
Fixed for Beta1.
Comment 2 ehucka 2007-07-10 12:14:50 UTC
verified