Am Montag, den 04.12.2006, 19:21 -0500 schrieb Thomas Fitzsimmons:
> Hi,
> 
> This patch makes Component.getFont always return a non-null Font.  This fixes 
> a 
> NullPointerException thrown by MegaMek.  I committed this fix to trunk and 
> classpath-0_93-branch.

Hmm. While this makes the method more safe, I don't think that's 100%
correct. When a component has no parent or doesn't get a font from a
parent it indeed returns null. The WindowPeer seems to be responsible
for setting a font on the toplevel window AFAICS.

/Roman



Reply via email to