<Swing Dev> Bug Report (with fix): NPE in CompoundBorder.getInsets()
jon.vanalten at redhat.com
jon.vanalten at redhat.com
Thu Jun 10 21:07:55 UTC 2010
Hi,
Downstream in IcedTea there was a report of this NPE:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=477
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:
http://icedtea.classpath.org/~vanaltj/webrevs/swing/bordernpe/webrev/
Comments?
Thanks!
jon
More information about the swing-dev
mailing list