nb-darcula
nb-darcula copied to clipboard
NullPointerException: Colors cannot be null
We have a report in NetBeans Bugzilla about a NPE when using darcula: https://netbeans.org/bugzilla/show_bug.cgi?id=258553
Stacktrace:
java.lang.NullPointerException: Colors cannot be null
at java.awt.GradientPaint.
@entlicher,@everflux; I can not reproduce the issue. Can you please give me the steps ?
I can tell you that I am using Ubuntu 16.04 Gnome, but I have no idea what triggered the bug.
@Revivius: Regarding the code UIManager.getColor("Button.darcula.color1") or UIManager.getColor("Button.darcula.color2") is null
Please make com.revivius.nb.darcula.ui.ContentAreaAwareToggleButtonUI NPE safe, when colors are not set in UIManager.