Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via freecol by smsm1
, 1 year ago
No such child: 0 at java.awt.Container.getComponent\(Container.java:280\) at javax.swing.JComponent.rectangleIsObscured\(JComponent.java:4123\) at javax.swing.JComponent.paint\(JComponent.java:1003\) at javax.swing.JLayeredPane.paint
java.lang.ArrayIndexOutOfBoundsException: No such child: 0
at java.awt.Container.getComponent\(Container.java:280\)
at javax.swing.JComponent.rectangleIsObscured\(JComponent.java:4123\)
at javax.swing.JComponent.paint\(JComponent.java:1003\)
at javax.swing.JLayeredPane.paint\(JLayeredPane.java:559\)
at javax.swing.JComponent.\_paintImmediately\(JComponent.java:4881\)
at javax.swing.JComponent.paintImmediately\(JComponent.java:4667\)
at javax.swing.RepaintManager.paintDirtyRegions\(RepaintManager.java:477\)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run\(SystemEventQueueUtilities.java:114\)
at java.awt.event.InvocationEvent.dispatch\(InvocationEvent.java:209\)
at java.awt.EventQueue.dispatchEvent\(EventQueue.java:461\)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy\(EventDispatchThread.java:269\)
at java.awt.EventDispatchThread.pumpEventsForHierarchy\(EventDispatchThread.java:190\)
at java.awt.EventDispatchThread.pumpEvents\(EventDispatchThread.java:184\)
at java.awt.EventDispatchThread.pumpEvents\(EventDispatchThread.java:176\)
at java.awt.EventDispatchThread.run\(EventDispatchThread.java:110\)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at net.sf.freecol.client.gui.FreeColMenuBar.paintComponent\(FreeColMenuBar.java:770\)
at javax.swing.JComponent.paint\(JComponent.java:1005\)
at javax.swing.JComponent.paintChildren\(JComponent.java:842\)
at javax.swing.JComponent.paint\(JComponent.java:1014\)
at javax.swing.JLayeredPane.paint\(JLayeredPane.java:559\)
at javax.swing.JComponent.paintChildren\(JComponent.java:842\)
at javax.swing.JComponent.paint\(JComponent.java:1014\)
at javax.swing.JComponent.\_paintImmediately\(JComponent.java:4881\)
at javax.swing.JComponent.paintImmediately\(JComponent.java:4667\)
at javax.swing.RepaintManager.paintDirtyRegions\(RepaintManager.java:477\)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run\(SystemEventQueueUtilities.java:114\)
at java.awt.event.InvocationEvent.dispatch\(InvocationEvent.java:209\)
at java.awt.EventQueue.dispatchEvent\(EventQueue.java:461\)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy\(EventDispatchThread.java:269\)
at java.awt.EventDispatchThread.pumpEventsForHierarchy\(EventDispatchThread.java:190\)
at java.awt.EventDispatchThread.pumpEvents\(EventDispatchThread.java:184\)
at java.awt.EventDispatchThread.pumpEvents\(EventDispatchThread.java:176\)
at java.awt.EventDispatchThread.run\(EventDispatchThread.java:110\)
  Logged In: YES 
user\_id=178085
Originator: NO
I got these - I do not know at which time they occured:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at net.sf.freecol.client.gui.panel.DragListener.mousePressed(DragListene r.java:84)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:22 2)	at java.awt.Component.processMouseEvent(Component.java:5485)	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)	at java.awt.Component.processEvent(Component.java:5253)	at java.awt.Container.processEvent(Container.java:1966)	at java.awt.Component.dispatchEventImpl(Component.java:3955)	at java.awt.Container.dispatchEventImpl(Container.java:2024)	at java.awt.Component.dispatchEvent(Component.java:3803)