java.lang.AssertionError: types[index] is null

GitHub | lodici | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    GitHub comment 696#271676199

    GitHub | 2 months ago | lodici
    java.lang.AssertionError: types[index] is null, index=1

    Root Cause Analysis

    1. java.lang.AssertionError

      types[index] is null

      at magic.model.choice.MagicPayManaCostResultBuilder.build()
    2. magic.model.choice
      MagicPayManaCostResultBuilder.hasResults
      1. magic.model.choice.MagicPayManaCostResultBuilder.build(MagicPayManaCostResultBuilder.java:54)
      2. magic.model.choice.MagicPayManaCostResultBuilder.build(MagicPayManaCostResultBuilder.java:105)
      3. magic.model.choice.MagicPayManaCostResultBuilder.hasResults(MagicPayManaCostResultBuilder.java:157)
      3 frames
    3. magic.model.condition
      MagicManaCostCondition.accept
      1. magic.model.condition.MagicManaCostCondition.accept(MagicManaCostCondition.java:28)
      1 frame
    4. magic.model.event
      MagicSourceActivation.canPlay
      1. magic.model.event.MagicPayManaCostEvent.isSatisfied(MagicPayManaCostEvent.java:47)
      2. magic.model.event.MagicActivation.canPlay(MagicActivation.java:108)
      3. magic.model.event.MagicSourceActivation.canPlay(MagicSourceActivation.java:26)
      3 frames
    5. magic.model.choice
      MagicChoice.getSimulationChoiceResult
      1. magic.model.choice.MagicPlayChoice.addValidChoices(MagicPlayChoice.java:78)
      2. magic.model.choice.MagicPlayChoice.getArtificialOptions(MagicPlayChoice.java:68)
      3. magic.model.choice.MagicChoice.getArtificialChoiceResults(MagicChoice.java:97)
      4. magic.model.choice.MagicChoice.getSimulationChoiceResult(MagicChoice.java:114)
      4 frames
    6. magic.model.event
      MagicEvent.getSimulationChoiceResult
      1. magic.model.event.MagicEvent.getSimulationChoiceResult(MagicEvent.java:443)
      1 frame
    7. magic.ai
      MCTSAI$2.run
      1. magic.ai.MCTSAI.runSimulation(MCTSAI.java:483)
      2. magic.ai.MCTSAI.randomPlay(MCTSAI.java:446)
      3. magic.ai.MCTSAI.access$000(MCTSAI.java:65)
      4. magic.ai.MCTSAI$2.run(MCTSAI.java:188)
      4 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames