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 197231 - NPE in ViewModelListener
Summary: NPE in ViewModelListener
Status: RESOLVED DUPLICATE of bug 196506
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 13:50 UTC by Egor Ushakov
Modified: 2011-04-04 14:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2011-03-30 13:50:40 UTC
In CND we sometimes see this NPE when switching debugger views:
java.lang.NullPointerException
    at
org.netbeans.modules.debugger.ui.views.ViewModelListener$4.run(ViewModelListener.java:569)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Egor Ushakov 2011-03-30 13:51:46 UTC
line 569:
if (sessionProviders.size() > 0) {

it looks like sessionProviders may become null too early (probably from destroy method)
Comment 2 Martin Entlicher 2011-04-04 14:15:12 UTC
Already fixed by issue #196506.

*** This bug has been marked as a duplicate of bug 196506 ***