It is currently 16 Apr 2024, 13:34
   
Text Size

Planar Conquest crash on choosing the commander

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Planar Conquest crash on choosing the commander

Postby matijas1 » 16 Mar 2021, 23:41

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
matijas1
 
Posts: 1
Joined: 15 Mar 2021, 00:41
Has thanked: 0 time
Been thanked: 0 time

Return to Forge

Who is online

Users browsing this forum: No registered users and 36 guests


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 36 guests

Login Form