Zn2O / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

NullPointerException in Gadget UserPreferencesGenerator #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
gwt-gadgets-1.0.1

Detailed description:
In UserPreferencesGenerator if the user defined subclass doesn't define a
method returning an expected class or interface (eg. int, void, etc..),
offcourse this is a user mistake, the generator throws a
NullPointerException instead of a proper message.

The patch fix this problem.

Original issue reported on code.google.com by daniele.galdi@gmail.com on 14 Nov 2008 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
I can see the problem in the code, but I can't actually reproduce it by 
creating a
preference method that returns 'int'.

Original comment by galgwt.reviews@gmail.com on 14 Nov 2008 at 12:39

GoogleCodeExporter commented 9 years ago
I had this problem when for my mistake I created an interface like this.

interface MyGadgetPreferences extends UserPreferences {

   StringPreference method1();

   // The wrong method
   void setPrefId();
}

Yes offcourse this class was wrong, but the UserPreferencesConverter didn't 
says to
me a correct message. The message was a NPE...that for me is wrong.

Original comment by daniele.galdi@gmail.com on 14 Nov 2008 at 1:28

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 11 Dec 2008 at 9:23