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 210498 - NullPointerException at org.netbeans.core.windows.model.DefaultModel.getModeTopComponentPreviousIndex
Summary: NullPointerException at org.netbeans.core.windows.model.DefaultModel.getModeT...
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-02 03:53 UTC by MackSix
Modified: 2012-04-03 20:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186526


Attachments
stacktrace (3.17 KB, text/plain)
2012-04-02 03:53 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-04-02 03:53:49 UTC
Build: NetBeans IDE Dev (Build 201203280401)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
MackSix: 1. Close all Windows.
2. Windows>>Configure Window>>Dock

Throws this exception.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.core.windows.model.DefaultModel.getModeTopComponentPreviousIndex(DefaultModel.java:1018)
   at org.netbeans.core.windows.Central.userDockedTopComponent(Central.java:2517)
   at org.netbeans.core.windows.WindowManagerImpl.userDockedTopComponent(WindowManagerImpl.java:1046)
   at org.netbeans.core.windows.actions.DockWindowAction.actionPerformed(DockWindowAction.java:101)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
Comment 1 MackSix 2012-04-02 03:53:53 UTC
Created attachment 117620 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2012-04-03 13:42:04 UTC
Please reopen if this problem is reproducible. I don't how an NPE could be thrown from that line since there already is a null check...
Comment 3 MackSix 2012-04-03 20:51:43 UTC
(In reply to comment #2)
> Please reopen if this problem is reproducible. I don't how an NPE could be
> thrown from that line since there already is a null check...

I don't know how it happened because the Dock option is not available in that situation. For some reason I had done just the right steps to close everything and that option was still available. I can't seem to find the same steps to reproduce now.