Commit a0d44ca
committed
rebuildProgrammerMenu: Handle no current board
This can happen when a board was selected, but the platform it lives in was
removed (or probably also when the board is removed from the platform).
Before this commit, this would give a NullPointerException, now it just
shows an empty programmers menu.
There appears to be some more weirdness (lacking a selected board, all
custom menus are visible), see arduino#10887 for that.1 parent a056a5f commit a0d44ca
1 file changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1702 | 1702 | | |
1703 | 1703 | | |
1704 | 1704 | | |
1705 | | - | |
1706 | | - | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
1707 | 1708 | | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
1713 | 1714 | | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1717 | 1719 | | |
1718 | 1720 | | |
1719 | 1721 | | |
| |||
0 commit comments