<Swing Dev> Bug Report (with fix): NPE in CompoundBorder.getInsets()
Alexander.Potochkin at Sun.COM
Tue Jun 15 06:35:53 PDT 2010
in the description of this bug
we can read that
"It functions correctly when using the JDK from Sun."
Do you have an idea why it happens?
I checked that we don't have the null check in that method
either in the Sun JDK
> Downstream in IcedTea there was a report of this NPE:
> The problem being that, while it checks that each of insideBorder and outsideBorder are non-null before trying to call their getBorderInsets() methods, there is no check that a non-null Insets object is returned before attempting to access its members. See CR for simple fix:
More information about the swing-dev