Page 1 of 1

Planar Conquest crash on choosing the commander

PostPosted: 16 Mar 2021, 23:41
by matijas1
I don't seem to be able to find someone having the same issue, but upon choosing the commander to start the planar conquest mode on the latest mobile backport the app comes up with a NullPointerException.
Code: Select all
EDT > java.lang.NullPointerException
        at forge.planarconquest.ConquestUtil$1.apply(ConquestUtil.java:182)
        at forge.planarconquest.ConquestUtil$1.apply(ConquestUtil.java:179)
        at com.google.common.collect.Iterators$5.computeNext(Iterators.java:637)
        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)
        at forge.toolbox.FList.setListData(FList.java:72)
        at forge.screens.planarconquest.NewConquestScreen$SelectStartingPlaneswalkerStep.onActivate(NewConquestScreen.java:217)
        at forge.screens.planarconquest.NewConquestScreen$SelectStartingPlaneswalkerStep.onActivate(NewConquestScreen.java:169)
        at forge.screens.MultiStepWizardScreen.setCurrentStep(MultiStepWizardScreen.java:97)
        at forge.screens.MultiStepWizardScreen.advanceStep(MultiStepWizardScreen.java:74)
        at forge.screens.MultiStepWizardScreen.access$000(MultiStepWizardScreen.java:11)
        at forge.screens.MultiStepWizardScreen$2.handleEvent(MultiStepWizardScreen.java:23)
        at forge.toolbox.FButton.tap(FButton.java:213)
        at forge.Forge$MainInputProcessor.tap(Forge.java:801)
        at forge.toolbox.FGestureAdapter.touchUp(FGestureAdapter.java:197)
        at forge.toolbox.FGestureAdapter.touchUp(FGestureAdapter.java:159)
        at com.badlogic.gdx.backends.lwjgl.DefaultLwjglInput.processEvents(DefaultLwjglInput.java:364)
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:220)
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:127)
By decompiling the class files I've found the top mention in the stacktrace, but looking at it nothing seems to be wrong since the game can find all the plane files for display and their individual commanders before choosing one. It only crashes upon trying to find it in the database model by its name.

Code: Select all
public static ConquestPlane getPlaneByName(final String planeName) {
        for (final ConquestPlane plane : FModel.getPlanes()) {
            if (plane.getName().equals(planeName)) {
                return plane;
            }
        }
        return null;
    }
If someone has an idea, would be appreciated