Skip to content

Commit

Permalink
BM: Fixed NPE when supported boards list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Fissore committed Jul 2, 2015
1 parent e544891 commit 8079a7c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ private Component getUpdatedCellComponent(Object value, boolean isSelected, int
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) {
Expand Down

0 comments on commit 8079a7c

Please sign in to comment.