From 9add5f74e7dccc33e9ba4156ee5d5dd3e1137836 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Tue, 17 Mar 2015 11:58:16 +0100 Subject: [PATCH] Attempting to fix a NPE --- .../contributions/ui/ContributedLibraryTableCell.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/cc/arduino/libraries/contributions/ui/ContributedLibraryTableCell.java b/app/src/cc/arduino/libraries/contributions/ui/ContributedLibraryTableCell.java index 7ca176811..02303b99f 100644 --- a/app/src/cc/arduino/libraries/contributions/ui/ContributedLibraryTableCell.java +++ b/app/src/cc/arduino/libraries/contributions/ui/ContributedLibraryTableCell.java @@ -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();