mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Attempting to fix a NPE
This commit is contained in:
parent
603dd3cb3a
commit
9add5f74e7
@ -306,6 +306,12 @@ public class ContributedLibraryTableCell extends InstallerTableCell {
|
|||||||
|
|
||||||
private Component getUpdatedCellComponent(Object value, boolean isSelected, int row, boolean hasBuiltInRelease) {
|
private Component getUpdatedCellComponent(Object value, boolean isSelected, int row, boolean hasBuiltInRelease) {
|
||||||
ContributedLibraryReleases releases = (ContributedLibraryReleases) value;
|
ContributedLibraryReleases releases = (ContributedLibraryReleases) value;
|
||||||
|
|
||||||
|
//FIXME: happens on macosx, don't know why
|
||||||
|
if (releases == null) {
|
||||||
|
return panel;
|
||||||
|
}
|
||||||
|
|
||||||
ContributedLibrary selectedLib = releases.getSelected();
|
ContributedLibrary selectedLib = releases.getSelected();
|
||||||
ContributedLibrary installedLib = releases.getInstalled();
|
ContributedLibrary installedLib = releases.getInstalled();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user