arduino / arduino/Arduino

IDE fails to start: 'Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException'

Open
#12,036 2 comments 0 reactions 0 assignees View on GitHub
Component: IDE Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

On raspberry pi5 bookworm

````
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at cc.arduino.view.NotificationPopup.updateLocation(NotificationPopup.java:244)
at cc.arduino.view.NotificationPopup.(NotificationPopup.java:222)
at cc.arduino.view.NotificationPopup.(NotificationPopup.java:72)
at cc.arduino.contributions.ContributionsSelfCheck.lambda$run$0(ContributionsSelfCheck.java:133)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
````

````
user@lysmarine:~ $ arduino --version
Picked up JAVA_TOOL_OPTIONS:
Loading configuration...
Initialising packages...
Preparing boards...
Arduino: 1.8.19

````

Thanks

Contributor guide

Open the contributing guide

Research direction

Reproduce the startup failure on Raspberry Pi 5 with Bookworm, then inspect NotificationPopup.java at lines 222 and 244 and the caller in ContributionsSelfCheck.java at line 133. Done means the Arduino IDE starts without the reported NullPointerException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, raspberry-pi
Domain
desktop
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.