diff --git a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java index 2ac5286a7..49cb45aee 100644 --- a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java +++ b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java @@ -368,7 +368,9 @@ public class ContributedPlatformTableCell extends InstallerTableCell { for (ContributedBoard board : selected.getBoards()) { desc += board.getName() + ", "; } - desc = desc.substring(0, desc.lastIndexOf(',')) + ".
"; + if (desc.lastIndexOf(',') != -1) { + desc = desc.substring(0, desc.lastIndexOf(',')) + ".
"; + } ContributedHelp help = null; if (selected.getHelp() != null) {