GWT Plugin

grails generate-gwt-rpc fails for unexposed services with NullPointerException

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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.

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: