GNOME Bugzilla – Bug 326384
Nullable parameters not handled correctly in various places
Last modified: 2006-01-11 00:14:11 UTC
Below are a list of methods that I have found that the javadoc indicates a null parameter is allowed but an NPE will actually be thrown if a null is passed since the parameter is used to call getHandle() (or some other method). I have checked all of them against gtk+'s C API and I have verified that their documentation states that null can be passed to the C function. -AboutDialog's setLogo(Pixbuf) method -IconView's setModel(TreeModel) method -IconFactory's (Type, String, AccelGroup) constructor -TreeViewColumn's setWidget(Widget) method -Widget's shapeCombineMask(Bitmap, int, int) method
Created attachment 57082 [details] [review] Patch to implement null checks. The third one above actually should be ItemFactory, although it needs to be scratched out since I had failed to notice that the constructor actually calls a static init method which has a null check in place.
Thanks for the patch. Applied to CVS HEAD.