0

在 Java 库中低于 NullpointerException。我怀疑这个问题是由于用户登录应用程序后在后台线程中异步更新组合框值造成的。

注意:这个问题正在生产中。任何解决方法或修复将不胜感激。

     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)       
4

0 回答 0