1
0
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:
Federico Fissore 2015-03-17 11:58:16 +01:00
parent 603dd3cb3a
commit 9add5f74e7

View File

@ -306,6 +306,12 @@ public class ContributedLibraryTableCell extends InstallerTableCell {
private Component getUpdatedCellComponent(Object value, boolean isSelected, int row, boolean hasBuiltInRelease) {
ContributedLibraryReleases releases = (ContributedLibraryReleases) value;
//FIXME: happens on macosx, don't know why
if (releases == null) {
return panel;
}
ContributedLibrary selectedLib = releases.getSelected();
ContributedLibrary installedLib = releases.getInstalled();