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 258913 - Error while switching current editor
Summary: Error while switching current editor
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 09:38 UTC by akobberup
Modified: 2016-05-17 09:49 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 akobberup 2016-04-20 09:38:35 UTC
If in "Show only editor" mode, and swiching between opened docs using ctrl+tab i get this exception (and have to restart the ide as no windows are displayed in the frame)

INFO [org.netbeans.core.windows.EditorOnlyDisplayer]: Error while switching current editor.
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.remove(ArrayList.java:492)
	at java.awt.Container.remove(Container.java:1217)
	at javax.swing.JLayeredPane.remove(JLayeredPane.java:246)
	at java.awt.Container.remove(Container.java:1262)
	at javax.swing.JRootPane.setContentPane(JRootPane.java:623)
	at javax.swing.JFrame.setContentPane(JFrame.java:695)
[catch] at org.netbeans.core.windows.EditorOnlyDisplayer.switchCurrentEditor(EditorOnlyDisplayer.java:139)
	at org.netbeans.core.windows.EditorOnlyDisplayer.onRegistryChange(EditorOnlyDisplayer.java:120)
	at org.netbeans.core.windows.EditorOnlyDisplayer.access$000(EditorOnlyDisplayer.java:70)
	at org.netbeans.core.windows.EditorOnlyDisplayer$1.propertyChange(EditorOnlyDisplayer.java:82)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
	at org.netbeans.core.windows.RegistryImpl.doFirePropertyChange(RegistryImpl.java:329)
	at org.netbeans.core.windows.RegistryImpl.access$100(RegistryImpl.java:69)
	at org.netbeans.core.windows.RegistryImpl$1.run(RegistryImpl.java:170)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:702)
	at java.awt.EventQueue$3.run(EventQueue.java:696)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 1 Martin Entlicher 2016-05-17 09:49:59 UTC
A similar problem, but from different action, is reported in bug #258566.