grails-angular-scaffolding icon indicating copy to clipboard operation
grails-angular-scaffolding copied to clipboard

Fixed issue #37, NullPointerException when generating views

Open amexboy opened this issue 10 years ago • 0 comments

Fix for https://github.com/robfletcher/grails-angular-scaffolding/issues/37. I installed the plugin as an inplace plugin and fixed issues #37! There were two problems with the plugin when running from my system.

  • The first problem was on scripts/_NgGenerate.groovy:4 that scaffoldingPluginDir was provided as a string and it was supposed to accessing a variable.
  • The second problem was causing NullPointerException on every line that cp was accessed. The variable wasn't being set properly. First thing the name of the plugin for hibernate had to have the version appended and (I couldn't figure out why,) but cp wasn't being bind properly

amexboy avatar Jan 09 '15 15:01 amexboy