-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
rc1
-
generic, x86, sparc
-
generic, solaris_7, windows_nt
I see the following NPE when using JavaHelp with b89. To replicate,
run:
/home/larryh/doc/quadralay/projects/Jtest/Output/view1.4
and poke around in the TOC. It usually doesn't take too long for
this to show up.
croak[50] java full version "1.4.0-rc-b89"
java.lang.NullPointerException
at javax.swing.text.FlowView.layout(FlowView.java:192)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:343)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:316)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.FlowView.layout(FlowView.java:196)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1533)
at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:730)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1262)
at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1206)
at javax.swing.ViewportLayout.layoutContainer(ViewportLayout.java:120)
at java.awt.Container.layout(Container.java:835)
at java.awt.Container.doLayout(Container.java:825)
at java.awt.Container.validateTree(Container.java:903)
at java.awt.Container.validateTree(Container.java:910)
at java.awt.Container.validate(Container.java:878)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:347)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:116)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
run:
/home/larryh/doc/quadralay/projects/Jtest/Output/view1.4
and poke around in the TOC. It usually doesn't take too long for
this to show up.
croak[50] java full version "1.4.0-rc-b89"
java.lang.NullPointerException
at javax.swing.text.FlowView.layout(FlowView.java:192)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:343)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:316)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.FlowView.layout(FlowView.java:196)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
at javax.swing.text.BoxView.layout(BoxView.java:682)
at javax.swing.text.BoxView.setSize(BoxView.java:379)
at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1533)
at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:730)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1262)
at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1206)
at javax.swing.ViewportLayout.layoutContainer(ViewportLayout.java:120)
at java.awt.Container.layout(Container.java:835)
at java.awt.Container.doLayout(Container.java:825)
at java.awt.Container.validateTree(Container.java:903)
at java.awt.Container.validateTree(Container.java:910)
at java.awt.Container.validate(Container.java:878)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:347)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:116)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
- duplicates
-
JDK-4522601 FlowView should not setParent(null) on views to be re-layed out.
- Closed
-
JDK-4522641 BasicTextUI.setSize() can restore focus incorrectly
- Closed
-
JDK-4546077 REGRESSION: JEditor pane focus problems with HTML components (submit)
- Closed