Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.4
-
Component/s: None
-
Labels:None
-
Environment:Grails 1.1.1
Description
If a service does not contain an "expose" property, grails generate-gwt-rpc fails with a NullPointerException.
This is because interfaceGenerator.getPackage returns null but is not checked.
Insert this in Line 18 of GenerateGwtRpc.groovy
if (interfaceGenerator.getPackage(serviceWrapper.clazz)) {
and close it after line 48.
Attachments
Issue Links
| This issue is duplicated by: | ||||
| GPGWT-11 | GenerateGwtRpc: java.lang.NullPointerException when a service does not contain expose property nor expose it as a GWT service |
|
|
|