arduino / arduino/Arduino

Board Manager Update results in java.lang.NullPointerException

Open
#11,131 2 comments 0 reactions 0 assignees View on GitHub
Component: Board/Lib Manager Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

IDE 1.8.13, Platform linux64, Ubuntu 20.04.1
Have not be able to update boards using board manager. This error is the same as reported #10335 (and closed) last year. The apparent solution does not appear to be robust, since it has reoccured. I cannot update the Arduino SAMD board support package. Currently at 1.8.9. Clicking update results in the error.

```
java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:175)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at cc.arduino.contributions.packages.ContributionInstaller.remove(ContributionInstaller.java:276)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:170)
... 1 more
```

Is the solution still to delete .arduino15/cache/cache.json and ./arduino15/package_index.json and restart the Arduino IDE, as stated by facchinm on June 10, 2020?

Contributor guide

Open the contributing guide

Research direction

Start at ContributionManagerUI.java lines 170-175 and ContributionInstaller.java line 276, then reproduce the Board Manager update for the Arduino SAMD package from 1.8.9. Check whether clearing .arduino15/cache/cache.json and ./arduino15/package_index.json changes the result. Done means the package update completes without a NullPointerException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.