<Swing Dev> Bug Report (with fix): NPE in CompoundBorder.getInsets()
Peter Zhelezniakov
Peter.Zhelezniakov at Sun.COM
Thu Jun 17 07:30:31 UTC 2010
On 06/17/2010 12:23 AM, Jon VanAlten wrote:
>> With this in mind, to me it makes the most sense to change the
>> behavior of this ListTableFocusBorder object so that it does not have
>> a possibility of returning null. The simplest way to do so would be
>> to take out the overrided single argument method, letting it default
>> back to the AbstractBorder method which creates an Insets(0, 0, 0, 0)
I agree wholeheartedly. Returning null from getBorderInsets() seems
wrong to me.
--
Peter
More information about the swing-dev
mailing list