Skip to content

Commit

Permalink
Catching null values sent to cell renderer when accessability mode is on
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Jul 3, 2017
1 parent 9691c8c commit eef30a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/ohdsi/usagi/ui/UsagiCellRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public class UsagiCellRenderer extends DefaultTableCellRenderer {

@Override
public void setValue(Object aValue) {
setToolTipText("<html>" + wordWrap(aValue.toString(), MAX_TOOLTIP_WIDTH_IN_CHARS) + "</html>");
if (aValue != null)
setToolTipText("<html>" + wordWrap(aValue.toString(), MAX_TOOLTIP_WIDTH_IN_CHARS) + "</html>");
super.setValue(aValue);
}

Expand Down

0 comments on commit eef30a1

Please sign in to comment.