I have a Java project configured with the groovy facet.
The sources have a script at the root and a package hierarchy with .groovy (class) files.
This is the wierdness:
So, I've started having to delete the generated java files from:
~/Library/Caches/IntelliJIDEA70/compiler/<projectsomething>/.generated/Groovy_to_java_source_code_generator/<projectsomthingelse>/
and the .class files from the project's compile output path almost every time I make a change.
The first time I run the script, everything goes smoothly.
The 2nd time (even without changing a line of code) I get NullPointerExceptions complaining I'm trying to operate on a null object.
What's happening when I step through the code leading up to this is that the method which returns a new object, creates it and populates it just fine, but when that object is returned, the variable that should reference this new object is null.
Then I delete the generated files and class files...everything is works fine...until the next run.
Hope this makes sense.
GRVY-581details the behavior by which these null pointers are occurring.