Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
NPE running worksheet #178
(Reported in assembla #1002052)
This line produces an NPE:
Thanks for looking into this. I could not find anything unusual with this worksheet or product. The worksheet is located in a simple Scala project.
The only difference I noticed is that .scala files have a J icon in front of them in the Kepler Eclipse that has the problem, while my older Helios Eclipse has an S icon in front of .scala files. Both worksheets have the proper Eclipse icon in front of them and open in the Scala Script editor properly. In the Kepler preferences the Scala source code type hangs directly under the Java type. I tried to change that, but could not find out how. Uninstalling all Scala IDE components and reinstalling them did not help.
Maybe this gives you a hint.
Hmm. It sounds like Scala IDE is not correctly installed.
Can you check in the 'Setup Diagnostics' (`Scala > Run Setup Diagnostics' from the Scala perspective), the check box in the first block (JDT Weaving) is set and grayed out?
That is really interesting. I had run the diagnostics a couple times before, but when I ran it now and tested the spreadsheet again right after, the inline comments got added properly, like in the Helios IDE.
I am using a regular Eclipse:
with Scala, PHP, and Java development tools added.
So I guess for me the issue is fixed now and the NullPointerException does not occur in the log file anymore.