sorting cardsets failed (on the server)

A cardset did not get sorted correctly when trying to move it to "archived". It might be a legacy issue with some old old cardset on an early days account:

23:30:40.342 [play-akka.actor.default-dispatcher-11] ERROR controllers.CardSets - Exception occurred while updating cardSetPriorities: 
java.lang.NullPointerException: null
  at controllers.CardSets.updateCardSetRelations(CardSets.java:264) ~[classes/:na]
  at Routes$$anonfun$routes$1$$anonfun$applyOrElse$50$$anonfun$apply$50.apply(routes_routing.scala:709) [classes/:na]
  at Routes$$anonfun$routes$1$$anonfun$applyOrElse$50$$anonfun$apply$50.apply(routes_routing.scala:709) [classes/:na]
  at play.core.Router$HandlerInvoker$$anon$7$$anon$2.invocation(Router.scala:183) [play_2.10.jar:2.2.3]
  at play.core.Router$Routes$$anon$1.invocation(Router.scala:377) [play_2.10.jar:2.2.3]
  at play.core.j.JavaAction$$anon$1.call(JavaAction.scala:56) [play_2.10.jar:2.2.3]
  at global.Global$2.call(Global.java:204) [classes/:na]
  at play.mvc.Security$AuthenticatedAction.call(Security.java:45) [play_2.10.jar:2.2.3]
  at play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:91) [play_2.10.jar:2.2.3]
  at play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:90) [play_2.10.jar:2.2.3]
  at play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82) [play_2.10.jar:2.2.3]
  at play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82) [play_2.10.jar:2.2.3]
  at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251) [scala-library.jar:na]
  at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249) [scala-library.jar:na]
  at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) [scala-library.jar:na]
  at play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:37) [play_2.10.jar:2.2.3]
  at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42) [akka-actor_2.10.jar:2.2.0]
  at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) [akka-actor_2.10.jar:2.2.0]
  at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library.jar:na]
  at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library.jar:na]
  at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library.jar:na]
  at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library.jar:na]

The line in question reads csr.setPriority(cardSetRelation.getPriority()); so csrMap.get(csr.getCardSetId().toString()) returned null.

Status

Bug is accepted as 'minor ' and the Team needs to fix it for Release beta 1.

Comments

Post a comment



optional
optional