Skip to content

[gui] codeJump not works correct when the target class is not decompiled #2400

@atship

Description

@atship

Issue details

when I click a class method that is not decompiled, the tab will open with the caret at the top line, what I want is goto the specified method.

WARN  - Ignore zero jump!
jadx.core.utils.exceptions.JadxRuntimeException: null
	at jadx.gui.ui.tab.TabbedPane.scrollToPos(TabbedPane.java:222)
	at jadx.gui.ui.tab.TabbedPane.showCode(TabbedPane.java:214)
	at jadx.gui.ui.tab.TabbedPane.onTabCodeJump(TabbedPane.java:418)
	at jadx.gui.ui.tab.TabsController.lambda$codeJump$7(TabsController.java:151)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at jadx.gui.ui.tab.TabsController.codeJump(TabsController.java:151)
	at jadx.gui.ui.tab.TabsController.lambda$codeJump$4(TabsController.java:111)
	at jadx.gui.ui.tab.TabsController.lambda$loadCodeWithUIAction$5(TabsController.java:124)
	at jadx.gui.jobs.SimpleTask.onFinish(SimpleTask.java:61)
	at jadx.gui.jobs.BackgroundExecutor$TaskWorker.lambda$doInBackground$1(BackgroundExecutor.java:153)
	at java.desktop/java.awt.event.InvocationEvent.dispatch$$$capture(InvocationEvent.java:308)

Jadx version

dev

Java version

17.0.12

OS

  • Windows
  • Linux
  • macOS

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions