Error:Module 'name' production: java.lang.NullPointerException
For me, it was the "Scala plugin" version 2016.3.4.
Removed it from IDEA and installed 2016.3.3 version.
Then everything started working.
UPDATE [2017-03-06]: With release 2016.3.9 (latest version), the bug is fixed, it seems.
I recreated the entire project and imported it and it solved the problem. Couldn't find any way to resolve this issue
This is a bug and it seems they are working on it. You can find a solution here