Skip to content

Cannot invoke "com.android.tools.smali.dexlib2.analysis.ClassPath.getClass(java.lang.CharSequence)" because "this.classPath" is null #6

@Wangab

Description

@Wangab

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. ...
  2. ...

Expected behavior
A clear and concise description of what you expected to happen.

Exception

Cannot invoke "com.android.tools.smali.dexlib2.analysis.ClassPath.getClass(java.lang.CharSequence)" because "this.classPath" is null
java.lang.NullPointerException: Cannot invoke "com.android.tools.smali.dexlib2.analysis.ClassPath.getClass(java.lang.CharSequence)" because "this.classPath" is null
	at com.android.tools.smali.dexlib2.analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:183)
	at com.android.tools.smali.dexlib2.analysis.MethodAnalyzer.<init>(MethodAnalyzer.java:157)
	at com.android.tools.smali.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:465)
	at com.android.tools.smali.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:371)
	at com.android.tools.smali.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:237)
	at com.android.tools.smali.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:282)
	at com.android.tools.smali.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:117)
	at me.lkl.dalvikus.tree.dex.DexEntryClassNode.getContent(DexEntryClassNode.kt:45)
	at me.lkl.dalvikus.tree.FileNode.loadContent$suspendImpl(Node.kt:90)
	at me.lkl.dalvikus.tree.FileNode.loadContent(Node.kt)
	at me.lkl.dalvikus.tabs.contentprovider.DualContentProvider.loadContent$suspendImpl(DualContentProvider.kt:10)
	at me.lkl.dalvikus.tabs.contentprovider.DualContentProvider.loadContent(DualContentProvider.kt)
	at me.lkl.dalvikus.ui.editor.EditorViewModel$loadCode$2.invokeSuspend(EditorViewModel.kt:111)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoro

Environment:

  • App version: 1.0.13
  • OS: Windows 11 10.0
  • Java: 17.0.16

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions