NPE with 1.0.241

Trying to run a test:

Error:Internal error: (java.lang.NullPointerException) null
java.lang.NullPointerException
     at
org.jetbrains.jps.incremental.scala.SettingsManager.getScalaSdk(SettingsManager.java:49)
     at
org.jetbrains.jps.incremental.scala.SettingsManager.hasScalaSdk(SettingsManager.java:43)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$$anonfun$hasScalaFacets$1.apply(ScalaBuilder.scala:75)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$$anonfun$hasScalaFacets$1.apply(ScalaBuilder.scala:75)
     at scala.collection.Iterator$class.exists(Iterator.scala:769)
     at scala.collection.AbstractIterator.exists(Iterator.scala:1177)
     at scala.collection.IterableLike$class.exists(IterableLike.scala:77)
     at scala.collection.AbstractIterable.exists(Iterable.scala:54)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$.hasScalaFacets(ScalaBuilder.scala:75)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$.isScalaProject(ScalaBuilder.scala:69)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder.buildStarted(ScalaBuilder.scala:36)
     at
org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:339)
     at
org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:191)
     at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:131)
     at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:229)
     at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
     at
org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:158)
     at
org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:745)

4 comments
Comment actions Permalink

Sorry, but no. Same file, different place.


On 10/31/14 5:56 PM, Pavel Fatin wrote:

Thanks! https://github.com/JetBrains/intellij-scala/commit/6324cae48406be3481e5a7ecef57bc3ca9437fa2
.

>

---
Original message URL: https://devnet.jetbrains.com/message/5527220#5527220

>

0
Comment actions Permalink

That's how NPEs "work" :)

The code in the getScalaSdk method relies on the result of libraryDependenciesIn method, so it seems, that the NPE should be fixed for now.

0
Comment actions Permalink

Build 246, things appear to be fine now.

Thank you,

Donald

On 10/31/14 6:59 PM, Pavel Fatin wrote:

That's how NPEs "work" :)

>

The code in the getScalaSdk method relies on the result of libraryDependenciesIn method, so it seems, that the NPE should be fixed for now.

>

0

Please sign in to leave a comment.