netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Inability to install any cards after running and trying to install paperclip

Open tolaasin opened this issue 9 years ago • 5 comments

Please describe the circumstances of your error here.

Stack Trace:

Error do play Paperclip #error {
 :cause nil
 :via
 [{:type java.lang.NullPointerException
   :message nil
   :at [clojure.lang.Numbers ops "Numbers.java" 1013]}]
 :trace
 [[clojure.lang.Numbers ops "Numbers.java" 1013]
  [clojure.lang.Numbers isZero "Numbers.java" 92]
  [game.core$fn__10081 invokeStatic "assets.clj" 367]
  [game.core$fn__10081 invoke "assets.clj" 367]
  [game.core$trigger_event invokeStatic "events.clj" 36]
  [game.core$trigger_event doInvoke "events.clj" 27]
  [clojure.lang.RestFn invoke "RestFn.java" 494]
  [game.core$runner_install invokeStatic "installing.clj" 323]
  [game.core$runner_install invoke "installing.clj" 310]
  [game.core$play invokeStatic "actions.clj" 17]
  [game.core$play invoke "actions.clj" 11]
  [game.main$handle_do invokeStatic "main.clj" 77]
  [game.main$handle_do invoke "main.clj" 74]
  [game.main$handle_command invokeStatic "main.clj" 145]
  [game.main$handle_command invoke "main.clj" 134]
  [game.main$run$fn__27373 invoke "main.clj" 180]
  [game.main$run invokeStatic "main.clj" 170]
  [game.main$run invoke "main.clj" 164]
  [game.main$_main$fn__27408 invoke "main.clj" 234]
  [clojure.lang.AFn run "AFn.java" 22]
  [java.lang.Thread run "Thread.java" 745]]}

tolaasin avatar Mar 14 '17 17:03 tolaasin

To be clear - was this during a run, or once it had fully completed?

danhut avatar Mar 14 '17 22:03 danhut

During a run. Paperclip was being installed on the outermost ice of 3.

tolaasin avatar Mar 14 '17 23:03 tolaasin

I am wondering what else you or the corp had installed. It is tricky to tell as the live server is a long way behind the master code branch on github right now - but this indicates some interaction with an asset was the issue:

[game.core$fn__10081 invokeStatic "assets.clj" 367]

On the current code branch this points to "Early Premiere" - but not sure this line number corresponds for the live server now.

danhut avatar Mar 14 '17 23:03 danhut

I would guess this is one of the zero? calls in Docklands Crackdown. This would probably barf if there were no power counters at all on Docklands.

JoelCFC25 avatar Mar 15 '17 00:03 JoelCFC25

Confirmed. Cause is rezzed Docklands Crackdown with no power counters. Those lines need to be something like (pos? (get-in card [:counter :power] 0))

JoelCFC25 avatar Mar 15 '17 01:03 JoelCFC25