nbscala icon indicating copy to clipboard operation
nbscala copied to clipboard

NullPointerException at org.netbeans.modules.scala.core.ScalaParserResult

Open tzezula opened this issue 11 years ago • 3 comments

Stacktrace: java.lang.NullPointerException at org.netbeans.modules.scala.core.ScalaParserResult.(ScalaParserResult.java:61) at org.netbeans.modules.scala.core.ScalaParserResult$.apply(ScalaParserResult.java:186) at org.netbeans.modules.scala.core.ScalaParser.parse(ScalaParser.java:109)

See https://netbeans.org/bugzilla/show_bug.cgi?id=240033 for details

tzezula avatar Jan 06 '14 16:01 tzezula

I submitted one a NetBeans report also linked as a duplicate to the bug above. In my case, I suspect it is triggered by the @native annotation in one of my sources. When I comment out the annotation the exception seems to not appear (at least not immediately). Of course, I do need the annotation :)

cminter avatar Feb 20 '14 23:02 cminter

Has this been resolved. It makes Netbeans pretty much unusable, now forcing me to use IDEA..

amitabh123 avatar Nov 02 '14 18:11 amitabh123

I looked into this and this issue should be closed - the bug was addressed with commit 295a1e88260d33a25436130604c3757e4076291e . I also tried to reproduce it using the note from @cminter (by using a scala class with a @native annotation) and the NPE isn't thrown.

In addition, this is a pretty old issue, so if it was still active, we would be getting more reports in the first place.

akochnev avatar Dec 10 '16 20:12 akochnev