JDK swing库中的例外

时间:2017-02-08 17:45:51

标签: java swing swingworker swingutilities

在java库中获取NullpointerException以下。我怀疑这个问题是由于用户登录应用程序后在后台线程中异步更新组合Box值。

注意:此问题正在投入生产。任何解决方法或修复都会非常感激。

     Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
                        at 
            javax.swing.DefaultListCellRenderer.getListCellRendererComponent(Unknown Source)
            at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(Unknown Source)
             at javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.getMinimumSize(Unknown Source)
at javax.swing.JComponent.getMinimumSize(Unknown Source)
                        at java.awt.FlowLayout.minimumLayoutSize(Unknown Source)
                        at java.awt.Container.minimumSize(Unknown Source)
                        at java.awt.Container.getMinimumSize(Unknown Source)
                        at javax.swing.JComponent.getMinimumSize(Unknown Source)
                        at javax.swing.BoxLayout.checkRequests(Unknown Source)
                        at javax.swing.BoxLayout.preferredLayoutSize(Unknown Source)
                        at java.awt.Container.preferredSize(Unknown Source)
                        at java.awt.Container.getPreferredSize(Unknown Source)
                        at javax.swing.JComponent.getPreferredSize(Unknown Source)
                        at java.awt.FlowLayout.preferredLayoutSize(Unknown Source)
                        at java.awt.Container.preferredSize(Unknown Source)
                        at java.awt.Container.getPreferredSize(Unknown Source)
                        at javax.swing.JComponent.getPreferredSize(Unknown Source)
                        at java.awt.BorderLayout.layoutContainer(Unknown Source)
                        at java.awt.Container.layout(Unknown Source)
                        at java.awt.Container.doLayout(Unknown Source)
                        at java.awt.Container.validateTree(Unknown Source)
                        at java.awt.Container.validateTree(Unknown Source)
                        at java.awt.Container.validateTree(Unknown Source)
                        at java.awt.Container.validateTree(Unknown Source)
                        at java.awt.Container.validateTree(Unknown Source)
                        at java.awt.Container.validate(Unknown Source)
                        at javax.swing.RepaintManager$3.run(Unknown Source)
                        at javax.swing.RepaintManager$3.run(Unknown Source)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
                rivilege(Unknown Source)
                        at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
                        at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
                        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
                        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
                        at java.awt.EventQueue.access$500(Unknown Source)
                        at java.awt.EventQueue$3.run(Unknown Source)
                        at java.awt.EventQueue$3.run(Unknown Source)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
                rivilege(Unknown Source)       

0 个答案:

没有答案