Scala Programming Language
  1. Scala Programming Language
  2. SI-6829

NPE at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1131)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0-RC5
    • Fix Version/s: Scala 2.10.1
    • Component/s: None

      Description

      I know the code shouldn't compile, but figured it shouldn't NPE either.

      [error]      while compiling: /Users/arya/school/pacman-simulator/src/main/scala/bugs/currenttype2.scala
      [error]         during phase: typer
      [error]      library version: version 2.10.0-RC5
      [error]     compiler version: version 2.10.0-RC5
      [error]   reconstructed args: -bootclasspath /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar:/Users/arya/.sbt/boot/scala-2.10.0-RC5/lib/scala-library.jar -d /Users/arya/school/pacman-simulator/target/scala-2.10/classes -classpath /Users/arya/school/pacman-simulator/target/scala-2.10/classes:/Users/arya/.ivy2/cache/org.lwjgl/lwjgl/jars/lwjgl-2.7.1.jar:/Users/arya/.ivy2/cache/org.lwjgl/lwjgl-jinput/jars/lwjgl-jinput-2.7.1.jar:/Users/arya/.ivy2/cache/org.lwjgl/lwjgl-native/jars/lwjgl-native-2.7.1.jar:/Users/arya/.ivy2/cache/org.lwjgl/lwjgl-util/jars/lwjgl-util-2.7.1.jar:/Users/arya/.ivy2/cache/slick/slick/jars/slick-274.jar:/Users/arya/.ivy2/cache/phys2d/phys2d/jars/phys2d-060408.jar:/Users/arya/.ivy2/cache/javax.jnlp/jnlp/jars/jnlp-1.2.jar:/Users/arya/.ivy2/cache/ibxm/ibxm/jars/ibxm-unknown.jar:/Users/arya/.ivy2/cache/jcraft/jogg/jars/jogg-0.0.7.jar:/Users/arya/.ivy2/cache/jcraft/jorbis/jars/jorbis-0.0.15.jar:/Users/arya/.ivy2/cache/javax.transaction/jta/jars/jta-1.1.jar:/Users/arya/.ivy2/cache/org.scalamock/scalamock-scalatest-support_2.10.0-RC5/jars/scalamock-scalatest-support_2.10.0-RC5-3.0-M8.jar:/Users/arya/.ivy2/cache/org.scalamock/scalamock-core_2.10.0-RC5/jars/scalamock-core_2.10.0-RC5-3.0-M8.jar:/Users/arya/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.0-RC5.jar:/Users/arya/.ivy2/cache/org.scala-lang/scala-actors/jars/scala-actors-2.10.0-RC5.jar:/Users/arya/.ivy2/cache/org.scalatest/scalatest_2.10.0-RC5/jars/scalatest_2.10.0-RC5-2.0.M5-B1.jar:/Users/arya/.ivy2/cache/org.scalaz/scalaz-core_2.10.0-RC5/bundles/scalaz-core_2.10.0-RC5-7.0.0-M6.jar:/Users/arya/.ivy2/cache/com.github.scala-incubator.io/scala-io-core_2.10.0-RC1/jars/scala-io-core_2.10.0-RC1-0.4.1.jar:/Users/arya/.ivy2/cache/com.jsuereth/scala-arm_2.10.0-RC1/jars/scala-arm_2.10.0-RC1-1.2.jar:/Users/arya/.ivy2/cache/com.github.scala-incubator.io/scala-io-file_2.10.0-RC1/jars/scala-io-file_2.10.0-RC1-0.4.1.jar
      [error] 
      [error]   last tree to typer: Ident(currentHistory)
      [error]               symbol: value <error: <none>> (flags: <synthetic> <is_error>)
      [error]    symbol definition: val <error: <none>>: <error>
      [error]                  tpe: <error>
      [error]        symbol owners: value <error: <none>> -> lazy value step -> class LearningSimulation -> object currenttype2 -> package bugs
      [error]       context owners: lazy value step -> class LearningSimulation -> object currenttype2 -> package bugs
      [error] 
      [error] == Enclosing template or block ==
      [error] 
      [error] Template( // val <local LearningSimulation>: <notype> in class LearningSimulation
      [error]   "AgentSimulation", "scala.Product", "scala.Serializable" // parents
      [error]   ValDef(
      [error]     private
      [error]     "_"
      [error]     <tpt>
      [error]     <empty>
      [error]   )
      [error]   // 7 statements
      [error]   ValDef( // private[this] val agents: List[bugs.currenttype2.AbstractAgent[_23.State,_23.Action] forSome { val _23: G }] in class LearningSimulation
      [error]     private <local> <caseaccessor> <paramaccessor>
      [error]     "agents"
      [error]     AppliedTypeTree(
      [error]       "List"
      [error]       "G"#"Agent"
      [error]     )
      [error]     <empty>
      [error]   )
      [error]   ValDef( // private[this] val state: G#State in class LearningSimulation
      [error]     private <local> <caseaccessor> <paramaccessor>
      [error]     "state"
      [error]     "G"#"State"
      [error]     <empty>
      [error]   )
      [error]   ValDef( // private[this] val rewards: Map[bugs.currenttype2.AbstractAgent[_27.State,_27.Action] forSome { val _27: G },bugs.currenttype2.RewardFunction[_28.State,_28.Action] forSome { val _28: G }] in class LearningSimulation
      [error]     private <local> <caseaccessor> <paramaccessor>
      [error]     "rewards"
      [error]     AppliedTypeTree(
      [error]       "Map"
      [error]       // 2 arguments
      [error]       "G"#"Agent"
      [error]       "G"#"Rewards"
      [error]     )
      [error]     <empty>
      [error]   )
      [error]   ValDef( // private[this] val rules: bugs.currenttype2.Rules[G] in class LearningSimulation
      [error]     private <local> <caseaccessor> <paramaccessor>
      [error]     "rules"
      [error]     AppliedTypeTree(
      [error]       "Rules"
      [error]       "G" // G <: bugs.currenttype2.GameDomain in class LearningSimulation, tree.tpe=G
      [error]     )
      [error]     <empty>
      [error]   )
      [error]   ValDef( // private[this] val pastHistory: List[G#State] in class LearningSimulation
      [error]     private <local> <caseaccessor> <paramaccessor>
      [error]     "pastHistory"
      [error]     AppliedTypeTree(
      [error]       "List"
      [error]       "G"#"State"
      [error]     )
      [error]     <empty>
      [error]   )
      [error]   DefDef( // def <init>(agents: List[bugs.currenttype2.AbstractAgent[_33.State,_33.Action] forSome { val _33: G }],state: G#State,rewards: Map[bugs.currenttype2.AbstractAgent[_35.State,_35.Action] forSome { val _35: G },bugs.currenttype2.RewardFunction[_36.State,_36.Action] forSome { val _36: G }],rules: bugs.currenttype2.Rules[G],pastHistory: List[G#State]): bugs.currenttype2.LearningSimulation[G] in class LearningSimulation
      [error]     <method> <triedcooking>
      [error]     "<init>"
      [error]     []
      [error]     // 1 parameter list
      [error]     ValDef( // agents: List[bugs.currenttype2.AbstractAgent[_33.State,_33.Action] forSome { val _33: G }]
      [error]       <param> <paramaccessor>
      [error]       "agents"
      [error]       AppliedTypeTree(
      [error]         "List"
      [error]         "G"#"Agent"
      [error]       )
      [error]       <empty>
      [error]     )
      [error]     ValDef( // state: G#State
      [error]       <param> <paramaccessor>
      [error]       "state"
      [error]       "G"#"State"
      [error]       <empty>
      [error]     )
      [error]     ValDef( // rewards: Map[bugs.currenttype2.AbstractAgent[_35.State,_35.Action] forSome { val _35: G },bugs.currenttype2.RewardFunction[_36.State,_36.Action] forSome { val _36: G }]
      [error]       <param> <paramaccessor>
      [error]       "rewards"
      [error]       AppliedTypeTree(
      [error]         "Map"
      [error]         // 2 arguments
      [error]         "G"#"Agent"
      [error]         "G"#"Rewards"
      [error]       )
      [error]       <empty>
      [error]     )
      [error]     ValDef( // rules: bugs.currenttype2.Rules[G]
      [error]       <param> <paramaccessor>
      [error]       "rules"
      [error]       AppliedTypeTree(
      [error]         "Rules"
      [error]         "G" // G <: bugs.currenttype2.GameDomain in class LearningSimulation, tree.tpe=G
      [error]       )
      [error]       <empty>
      [error]     )
      [error]     ValDef( // pastHistory: List[G#State]
      [error]       <param> <defaultparam/trait> <paramaccessor>
      [error]       "pastHistory"
      [error]       AppliedTypeTree(
      [error]         "List"
      [error]         "G"#"State"
      [error]       )
      [error]       "Nil"
      [error]     )
      [error]     <tpt> // tree.tpe=bugs.currenttype2.LearningSimulation[G]
      [error]     Block( // tree.tpe=Unit
      [error]       Apply( // def <init>(): Object in class Object, tree.tpe=Object
      [error]         LearningSimulation.super."<init>" // def <init>(): Object in class Object, tree.tpe=()Object
      [error]         Nil
      [error]       )
      [error]       ()
      [error]     )
      [error]   )
      [error]   ValDef( // lazy private[this] var step: <error> in class LearningSimulation
      [error]     private <mutable> <local> lazy
      [error]     "step"
      [error]     "LearningSimulation"
      [error]     Block(
      [error]       ValDef( // val updatedAgents: List[bugs.currenttype2.AbstractAgent[_43.State,_43.Action] forSome { val _43: G }]
      [error]         <triedcooking>
      [error]         "updatedAgents"
      [error]         AppliedTypeTree(
      [error]           "List"
      [error]           "G"#"Agent"
      [error]         )
      [error]         Apply(
      [error]           "agents"."map"
      [error]           Function( // val $anonfun: <notype>
      [error]             ValDef( // agent: bugs.currenttype2.AbstractAgent[_45.State,_45.Action] forSome { val _45: G }
      [error]               <param> <triedcooking>
      [error]               "agent"
      [error]               <tpt> // tree.tpe=bugs.currenttype2.AbstractAgent[_45.State,_45.Action] forSome { val _45: G }
      [error]               <empty>
      [error]             )
      [error]             Block(
      [error]               // 5 statements
      [error]               ValDef( // private[this] val x$2: (Any, Any, Any)
      [error]                 private <local> <synthetic> <triedcooking>
      [error]                 "x$2"
      [error]                 <tpt> // tree.tpe=(Any, Any, Any)
      [error]                 Match(
      [error]                   Annotated( // tree.tpe=<error> @unchecked
      [error]                     Apply( // def <init>(): unchecked in class unchecked, tree.tpe=<error> @unchecked
      [error]                       new scala.unchecked."<init>" // def <init>(): unchecked in class unchecked, tree.tpe=()unchecked
      [error]                       Nil
      [error]                     )
      [error]                     Apply( // object Tuple3 in package scala
      [error]                       "scala"."Tuple3" // object Tuple3 in package scala, tree.tpe=Tuple3.type
      [error]                       // 3 arguments
      [error]                       "state"
      [error]                       Apply( // val <error>: <error> in class <error>, tree.tpe=<error>
      [error]                         "actions" // val <error>: <error> in class <error>, tree.tpe=<error>
      [error]                         "agent"
      [error]                       )
      [error]                       "nextState" // val <error: <none>>: <error>, tree.tpe=<error>
      [error]                     )
      [error]                   )
      [error]                   CaseDef(
      [error]                     Apply( // object Tuple3 in package scala
      [error]                       "scala"."Tuple3" // object Tuple3 in package scala, tree.tpe=Tuple3.type
      [error]                       // 3 arguments
      [error]                       Bind( // val s: Any, tree.tpe=Any
      [error]                         "s"
      [error]                         "_" // tree.tpe=Any
      [error]                       )
      [error]                       Bind( // val a: Any, tree.tpe=Any
      [error]                         "a"
      [error]                         "_" // tree.tpe=Any
      [error]                       )
      [error]                       Bind( // val s2: Any, tree.tpe=Any
      [error]                         "s2"
      [error]                         "_" // tree.tpe=Any
      [error]                       )
      [error]                     )
      [error]                     Apply( // object Tuple3 in package scala
      [error]                       "scala"."Tuple3" // object Tuple3 in package scala, tree.tpe=Tuple3.type
      [error]                       // 3 arguments
      [error]                       "s" // val s: Any, tree.tpe=Any
      [error]                       "a" // val a: Any, tree.tpe=Any
      [error]                       "s2" // val s2: Any, tree.tpe=Any
      [error]                     )
      [error]                   )
      [error]                 )
      [error]               )
      [error]               ValDef( // val s: Any
      [error]                 <triedcooking>
      [error]                 "s"
      [error]                 <tpt> // tree.tpe=Any
      [error]                 "x$2"."_1" // val _1: T1 in class Tuple3, tree.tpe=Any
      [error]               )
      [error]               ValDef( // val a: Any
      [error]                 <triedcooking>
      [error]                 "a"
      [error]                 <tpt> // tree.tpe=Any
      [error]                 "x$2"."_2" // val _2: T2 in class Tuple3, tree.tpe=Any
      [error]               )
      [error]               ValDef( // val s2: Any
      [error]                 <triedcooking>
      [error]                 "s2"
      [error]                 <tpt> // tree.tpe=Any
      [error]                 "x$2"."_3" // val _3: T3 in class Tuple3, tree.tpe=Any
      [error]               )
      [error]               ValDef( // val r: <error>
      [error]                 <triedcooking>
      [error]                 "r"
      [error]                 <tpt> // tree.tpe=<error>
      [error]                 Apply(
      [error]                   rewards(agent)."r"
      [error]                   // 3 arguments
      [error]                   "s" // val s: Any, tree.tpe=Any
      [error]                   "a" // val a: Any, tree.tpe=Any
      [error]                   "s2" // val s2: Any, tree.tpe=Any
      [error]                 )
      [error]               )
      [error]               Typed(
      [error]                 Apply( // def learn(s1: State,a: Action,s2: State,r: bugs.currenttype2.Reward): AbstractAgent.this.A in trait AbstractAgent, tree.tpe=<error>
      [error]                   "agent"."learn" // def learn(s1: State,a: Action,s2: State,r: bugs.currenttype2.Reward): AbstractAgent.this.A in trait AbstractAgent, tree.tpe=(s1: _45.State, a: _45.Action, s2: _45.State, r: bugs.currenttype2.Reward)agent.A
      [error]                   // 4 arguments
      [error]                   "s" // val s: Any, tree.tpe=Any
      [error]                   "a" // val a: Any, tree.tpe=Any
      [error]                   "s2" // val s2: Any, tree.tpe=Any
      [error]                   "r" // val r: <error>, tree.tpe=<error>
      [error]                 )
      [error]                 "G"#"Agent"
      [error]               )
      [error]             )
      [error]           )
      [error]         )
      [error]       )
      [error]       Apply(
      [error]         "copy"
      [error]         // 3 arguments
      [error]         AssignOrNamedArg( // tree.tpe=<error>
      [error]           "agents"
      [error]           "updatedAgents" // val updatedAgents: List[bugs.currenttype2.AbstractAgent[_43.State,_43.Action] forSome { val _43: G }], tree.tpe=List[bugs.currenttype2.AbstractAgent[_43.State,_43.Action] forSome { val _43: G }]
      [error]         )
      [error]         AssignOrNamedArg( // tree.tpe=<error>
      [error]           "state"
      [error]           "nextState" // val <error: <none>>: <error>, tree.tpe=<error>
      [error]         )
      [error]         AssignOrNamedArg( // tree.tpe=<error>
      [error]           "pastHistory"
      [error]           "currentHistory" // val <error: <none>>: <error>, tree.tpe=<error>
      [error]         )
      [error]       )
      [error]     )
      [error]   )
      [error] )
      [error] 
      [error] == Expanded type of tree ==
      [error] 
      [error] <error>
      [error] 
      [error] uncaught exception during compilation: java.lang.NullPointerException
      java.lang.NullPointerException
      	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1131)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5467)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2341)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5387)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
      	at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5658)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedValDef(Typers.scala:1934)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5385)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
      	at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2770)
      	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
      	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
      	at scala.collection.immutable.List.loop$1(List.scala:164)
      	at scala.collection.immutable.List.mapConserve(List.scala:180)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2870)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1862)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1726)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5400)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
      	at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2770)
      	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
      	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
      	at scala.collection.immutable.List.loop$1(List.scala:164)
      	at scala.collection.immutable.List.mapConserve(List.scala:180)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2870)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1862)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:1769)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5401)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
      	at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2770)
      	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
      	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
      	at scala.collection.immutable.List.loop$1(List.scala:164)
      	at scala.collection.immutable.List.mapConserve(List.scala:180)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2870)
      	at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5127)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5404)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
      	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5509)
      	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:98)
      	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:461)
      	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:90)
      	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:90)
      	at scala.collection.Iterator$class.foreach(Iterator.scala:727)
      	at scala.collection.AbstractIterator.foreach(Iterator.scala:1156)
      	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:90)
      	at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1574)
      	at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1548)
      	at scala.tools.nsc.Global$Run.compileSources(Global.scala:1544)
      	at scala.tools.nsc.Global$Run.compile(Global.scala:1654)
      	at xsbt.CachedCompiler0.run(CompilerInterface.scala:90)
      	at xsbt.CachedCompiler0.run(CompilerInterface.scala:72)
      	at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:73)
      	at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:35)
      	at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:29)
      	at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:71)
      	at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:71)
      	at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:71)
      	at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:101)
      	at sbt.compiler.AggressiveCompile$$anonfun$4.compileScala$1(AggressiveCompile.scala:70)
      	at sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.scala:88)
      	at sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.scala:60)
      	at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:24)
      	at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:22)
      	at sbt.inc.Incremental$.cycle(Incremental.scala:39)
      	at sbt.inc.Incremental$.compile(Incremental.scala:26)
      	at sbt.inc.IncrementalCompile$.apply(Compile.scala:20)
      	at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:96)
      	at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:44)
      	at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:31)
      	at sbt.Compiler$.apply(Compiler.scala:79)
      	at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:571)
      	at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:571)
      	at sbt.Scoped$$anonfun$hf2$1.apply(Structure.scala:578)
      	at sbt.Scoped$$anonfun$hf2$1.apply(Structure.scala:578)
      	at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
      	at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
      	at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
      	at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
      	at sbt.std.Transform$$anon$5.work(System.scala:71)
      	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
      	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
      	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
      	at sbt.Execute.work(Execute.scala:238)
      	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
      	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
      	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
      	at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      [error] (compile:compile) java.lang.NullPointerException
      

        Issue Links

          Activity

          Show
          Paul Phillips added a comment - https://github.com/scala/scala/pull/1801

            People

            • Assignee:
              Paul Phillips
              Reporter:
              Arya Irani
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development