|
Exception in thread "main" java.lang.NullPointerException
at com.huying.swing.htmleditor.eb.a(Unknown Source)
at com.huying.swing.htmleditor.eb.getSpan(Unknown Source)
at javax.swing.text.GlyphView.getTabbedSpan(GlyphView.java:261)
at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:449)
at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:398)
at javax.swing.text.FlowView.layout(FlowView.java:182)
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: 1598)
at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java: 800)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1272)
at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1206)
at javax.swing.text.JTextComponent.getPreferredScrollableViewportSize(JT extComponent.java:1644)
at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:72 )
at java.awt.Container.preferredSize(Container.java:1175)
at java.awt.Container.getPreferredSize(Container.java:1159)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1274)
at javax.swing.ScrollPaneLayout.preferredLayoutSize(ScrollPaneLayout.jav a:475)
at java.awt.Container.preferredSize(Container.java:1175)
at java.awt.Container.getPreferredSize(Container.java:1159)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1274)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSi ze(BasicTabbedPaneUI.java:1992)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLa youtSize(BasicTabbedPaneUI.java:1966)
at java.awt.Container.preferredSize(Container.java:1175)
at java.awt.Container.getPreferredSize(Container.java:1159)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1274)
at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:564)
at java.awt.Container.preferredSize(Container.java:1175)
at java.awt.Container.getPreferredSize(Container.java:1159)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1274)
at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:564)
at java.awt.Container.preferredSize(Container.java:1175)
at java.awt.Container.getPreferredSize(Container.java:1159)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1274)
at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager. getPreferredSizeOfComponent(BasicSplitPaneUI.java:1770)
at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager. getPreferredSizes(BasicSplitPaneUI.java:2003)
at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager. resetToPreferredSizes(BasicSplitPaneUI.java:2040)
at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager. layoutContainer(BasicSplitPaneUI.java:1470)
at java.awt.Container.layout(Container.java:1017)
at java.awt.Container.doLayout(Container.java:1007)
at java.awt.Container.validateTree(Container.java:1089)
at java.awt.Container.validateTree(Container.java:1096)
at java.awt.Container.validateTree(Container.java:1096)
at java.awt.Container.validateTree(Container.java:1096)
at java.awt.Container.validateTree(Container.java:1096)
at java.awt.Container.validate(Container.java:1064)
at java.awt.Window.show(Window.java:450)
at com.huying.jdiary.app.App.main(Unknown Source)
头一次运行程序时没有这个Exception,第二遍再运行就有Exception,
不知道是程序的问题,还是环境的问题? |
|