-
-
Notifications
You must be signed in to change notification settings - Fork 7k
rebuildProgrammerMenu: Handle no current board #10922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rebuildProgrammerMenu: Handle no current board #10922
Conversation
This can happen happen in some unlikely cases (such as when renaming a platform in a way that breaks the "select a board when none is selected logic"). Even though a board should always be selected, code should still handle no selected board gracefully (rather than raising a NullPointerException like this used to do). See arduino#10887 for the underlying issue that caused no board to be selected.
a0d44ca
to
61e12d5
Compare
✅ Build completed.
Please test this code using one of the following:
⬇️ https://downloads.arduino.cc/javaide/pull_requests/arduino-PR-10922-BUILD-986-linux32.tar.xz
⬇️ https://downloads.arduino.cc/javaide/pull_requests/arduino-PR-10922-BUILD-986-linux64.tar.xz
⬇️ https://downloads.arduino.cc/javaide/pull_requests/arduino-PR-10922-BUILD-986-windows.zip
⬇️ https://downloads.arduino.cc/javaide/pull_requests/arduino-PR-10922-BUILD-986-macosx.zip
⬇️ https://downloads.arduino.cc/javaide/pull_requests/arduino-PR-10922-BUILD-986-linuxarm.tar.xz
i️ The linuxarm
build is still experimental and may not be always available.
Does this also fix #10580 ?
@NicoHood this PR would certainly solve one problem caused by having no platforms installed. There might be more, I haven't tested tihs.
Uh oh!
There was an error while loading. Please reload this page.
rebuildProgrammerMenu: Handle no current board
This can happen happen in some unlikely cases (such as when renaming a
platform in a way that breaks the "select a board when none is selected
logic").
Even though a board should always be selected, code should still handle
no selected board gracefully (rather than raising a NullPointerException
like this used to do).
See #10887 for the underlying issue that caused no board to be selected.
All Submissions: