Re: [java-gnome-hackers] Enchant RuntimeException
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2010-03-10 05:24:09
|
On Tue, 2010-03-09 at 20:34 +0200, Serkan Kaba wrote: > When requestDict is called for an unexisting dictionary enchant returns > null and we're not checking this so this throws a > RuntimeException("Cannot make a Java proxy for the NULL pointer!") Huh. Our doc says "Returns null if no suitable dictionary was found." http://java-gnome.sourceforge.net/4.0/doc/api/org/freedesktop/enchant/Enchant.html#requestDictionary(java.lang.String) so presumably we should do that. [adding a checked Exception would be an API change; while that's not impossible, as usual I'd prefer not to without a compelling reason to] AfC Sydney |