You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.NullPointerException
at com.bulenkov.darcula.ui.DarculaProgressBarUI.paintDeterminate(DarculaProgressBarUI.java:124)
at javax.swing.plaf.basic.BasicProgressBarUI.paint(BasicProgressBarUI.java:412)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at javax.swing.JComponent.printComponent(JComponent.java:1220)
at javax.swing.JComponent.paint(JComponent.java:1060)
at javax.swing.JComponent.print(JComponent.java:1202)
at firok.test.Test.main(Test.java:27)
and here is the source code where program crashed ( DarculaProgressBarUI::paintDeterminate:124 )
If a
JProgressBar
has no parent component, trying to paint it on a Graphics will throw NullPointerException.The following code
will throw a NPE at this line:
bar.print(gra);
and here is the source code where program crashed (
DarculaProgressBarUI::paintDeterminate:124
)for now the resolution is
The text was updated successfully, but these errors were encountered: