Skip to content

Commit

Permalink
Fix NPE in FontIcon. Fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Nov 13, 2018
1 parent 0aeda5b commit 98c0007
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public FontIcon(Ikon iconCode) {
}

public String toString() {
return getIconCode().getDescription() + ":" + getIconSize() + ":" + getIconColor();
Ikon iconCode = getIconCode();
return (iconCode != null ? iconCode.getDescription() : "<undef>") + ":" + getIconSize() + ":" + getIconColor();
}

@Override
Expand Down

0 comments on commit 98c0007

Please sign in to comment.