skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.99k stars 4.9k forks source link

NullPointerException: Cannot invoke "sun.awt.shell.Win32ShellFolder2.getIShellFolder()" #2286

Closed jietlee closed 2 months ago

jietlee commented 2 months ago

Issue details

Jadx version : 1.5.0 Java version : 21.0.3 Java VM : Eclipse Adoptium OpenJDK 64-Bit Server VM Platform : Windows 11 (10.0 amd64) Max heap size: 4096 MB

java.lang.NullPointerException: Cannot invoke "sun.awt.shell.Win32ShellFolder2.getIShellFolder()" because the return value of "sun.awt.shell.Win32ShellFolderManager2.getNetwork()" is null
    at java.desktop/sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Unknown Source)
    at java.desktop/sun.awt.shell.Win32ShellFolder2$2.call(Unknown Source)
    at java.desktop/sun.awt.shell.Win32ShellFolder2$2.call(Unknown Source)
    at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.desktop/sun.awt.shell.Win32ShellFolderManager2$ComInvoker$1.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)

Jadx version

1.5.0

Java version

21.0.3

OS

skylot commented 2 months ago

Duplicate of #1657

Possible workaround: Enable Preferences -> Other -> Use alternative file dialog option, this will use another file open dialog implementation.