<Swing Dev> Bug Report (with fix): NPE in CompoundBorder.getInsets()
jon.vanalten at redhat.com
jon.vanalten at redhat.com
Wed Jun 23 15:07:45 UTC 2010
Hi,
Thanks for taking a look.
After giving this a week to stew, we have one "Aye" and no "Nay". Any chance of getting a bug ID for this?
cheers,
jon
----- "Peter Zhelezniakov" <Peter.Zhelezniakov at Sun.COM> wrote:
> 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