1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

BM: Fixed NPE when supported boards list is empty

This commit is contained in:
Federico Fissore 2015-07-02 13:39:46 +02:00
parent e544891718
commit 8079a7cf4c

View File

@ -368,7 +368,9 @@ public class ContributedPlatformTableCell extends InstallerTableCell {
for (ContributedBoard board : selected.getBoards()) {
desc += board.getName() + ", ";
}
desc = desc.substring(0, desc.lastIndexOf(',')) + ".<br />";
if (desc.lastIndexOf(',') != -1) {
desc = desc.substring(0, desc.lastIndexOf(',')) + ".<br />";
}
ContributedHelp help = null;
if (selected.getHelp() != null) {