"Add .zip-library" getting "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException"
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Description
I try it with a new version with installer and the latest stable portable version and the nightly build and the latest beta.
I uninstalled everything and deleted the folder "C:\Users\Marph.000\AppData\Local\Arduino15".
But I still get this error, when I try to "add .zip-library" (Menu/Sketch/include library/add .zip library).
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Win32ShellFolder2.java:571)
at sun.awt.shell.Win32ShellFolder2.access$400(Win32ShellFolder2.java:72)
at sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:298)
at sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:296)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:556)
at java.lang.Thread.run(Thread.java:748)
Contributor guide
Research direction
Start at Sketch > Include Library > Add .ZIP Library and reproduce the failure on Windows using the versions described. Read the reported AWT stack trace, especially Win32ShellFolder2, to identify where the file chooser fails. Done means adding a .zip library no longer produces the NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100