Hi:
I am getting NPE on the randomswitch, can you take a look?
Simulation overall.ProfilePeople started…
Exception in thread “main” java.lang.NullPointerException
at io.gatling.core.action.builder.RandomSwitchBuilder$$anonfun$3.apply(RandomSwitchBuilder.scala:34)
at io.gatling.core.action.builder.RandomSwitchBuilder$$anonfun$3.apply(RandomSwitchBuilder.scala:32)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at io.gatling.core.action.builder.RandomSwitchBuilder.build(RandomSwitchBuilder.scala:32)
at io.gatling.core.structure.AbstractStructureBuilder$$anonfun$buildChainedActions$1.apply(AbstractStructureBuilder.scala:31)
at io.gatling.core.structure.AbstractStructureBuilder$$anonfun$buildChainedActions$1.apply(AbstractStructureBuilder.scala:30)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111)
at scala.collection.immutable.List.foldLeft(List.scala:84)
at io.gatling.core.structure.AbstractStructureBuilder.buildChainedActions(AbstractStructureBuilder.scala:30)
at io.gatling.core.structure.ChainBuilder.build(ChainBuilder.scala:45)
at io.gatling.core.action.builder.IfBuilder.build(IfBuilder.scala:34)
at io.gatling.core.structure.AbstractStructureBuilder$$anonfun$buildChainedActions$1.apply(AbstractStructureBuilder.scala:31)
at io.gatling.core.structure.AbstractStructureBuilder$$anonfun$buildChainedActions$1.apply(AbstractStructureBuilder.scala:30)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111)
at scala.collection.immutable.List.foldLeft(List.scala:84)
at io.gatling.core.structure.AbstractStructureBuilder.buildChainedActions(AbstractStructureBuilder.scala:30)
at io.gatling.core.structure.ChainBuilder.build(ChainBuilder.scala:45)
at io.gatling.core.action.builder.RandomSwitchBuilder$$anonfun$3.apply(RandomSwitchBuilder.scala:34)
at io.gatling.core.action.builder.RandomSwitchBuilder$$anonfun$3.apply(RandomSwitchBuilder.scala:32)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at io.gatling.core.action.builder.RandomSwitchBuilder.build(RandomSwitchBuilder.scala:32)
at io.gatling.core.structure.AbstractStructureBuilder$$anonfun$buildChainedActions$1.apply(AbstractStructureBuilder.scala:31)
at io.gatling.core.structure.AbstractStructureBuilder$$anonfun$buildChainedActions$1.apply(AbstractStructureBuilder.scala:30)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111)
at scala.collection.immutable.List.foldLeft(List.scala:84)
at io.gatling.core.structure.AbstractStructureBuilder.buildChainedActions(AbstractStructureBuilder.scala:30)
at io.gatling.core.structure.ScenarioBuilder.build(ScenarioBuilder.scala:53)
at io.gatling.core.scenario.configuration.ConfiguredScenarioBuilder.build(ConfiguredScenarioBuilder.scala:51)
at io.gatling.core.scenario.configuration.Simulation$$anonfun$scenarios$1.apply(Simulation.scala:26)
at io.gatling.core.scenario.configuration.Simulation$$anonfun$scenarios$1.apply(Simulation.scala:26)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at io.gatling.core.scenario.configuration.Simulation$class.scenarios(Simulation.scala:26)
at overall.ProfilePeople.scenarios(ProfilePeople.scala:13)
at io.gatling.core.runner.Runner.run(Runner.scala:46)
at io.gatling.app.Gatling$$anonfun$19.apply(Gatling.scala:198)
at io.gatling.app.Gatling$$anonfun$19.apply(Gatling.scala:190)
at scala.Option.getOrElse(Option.scala:120)
at io.gatling.app.Gatling.start(Gatling.scala:190)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:58)
at io.gatling.app.Gatling$.runGatling(Gatling.scala:79)
at io.gatling.app.Gatling$.main(Gatling.scala:53)
at io.gatling.app.Gatling.main(Gatling.scala)