Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] restoreSwitchOverString fails #2359

Open
steelbytes opened this issue Dec 3, 2024 · 0 comments
Open

[core] restoreSwitchOverString fails #2359

steelbytes opened this issue Dec 3, 2024 · 0 comments
Assignees
Labels
bug Core Issues in jadx-core module

Comments

@steelbytes
Copy link

steelbytes commented Dec 3, 2024

Issue details

switch over string fails

Relevant log output or stacktrace

/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue
    java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because the return value of "jadx.core.dex.visitors.regions.SwitchOverStringVisitor$SwitchData.getNewCases()" is null
    	at jadx.core.dex.visitors.regions.SwitchOverStringVisitor.restoreSwitchOverString(SwitchOverStringVisitor.java:109)
    	at jadx.core.dex.visitors.regions.SwitchOverStringVisitor.visitRegion(SwitchOverStringVisitor.java:66)
    	at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseIterativeStepInternal(DepthRegionTraversal.java:77)
    	at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseIterativeStepInternal(DepthRegionTraversal.java:82)
    	at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseIterative(DepthRegionTraversal.java:31)
    	at jadx.core.dex.visitors.regions.SwitchOverStringVisitor.visit(SwitchOverStringVisitor.java:60)
     */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0070 A[ORIG_RETURN, RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:5:0x006e A[RETURN, SYNTHETIC] */
    @Override // com.piaggio.bike.data.vehicle.IVehicleModel
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */

Provide sample and class/method full name

apk from https://apkpure.com/piaggio/it.piaggio.app (or from play store)
class com.piaggio.bike.data.vehicle.VehicleModel method enableClockSync()

Jadx version

1.5.1 reelase / windows

@steelbytes steelbytes added bug Core Issues in jadx-core module labels Dec 3, 2024
@skylot skylot self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Core Issues in jadx-core module
Projects
None yet
Development

No branches or pull requests

2 participants