Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix for TableUI with null cell value
  • Loading branch information
hansonr hansonr
hansonr authored and hansonr committed Nov 9, 2018
commit fd513eb03016df0ad4138acdd2f873cbb3f8dd5b
3 changes: 2 additions & 1 deletion sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTableUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ public DOMNode updateDOMNode() {
private JSComponent getCellComponent(int row, int column) {
TableCellRenderer renderer = table.getCellRenderer(row, column);
JSComponent c = (JSComponent) table.prepareRenderer(renderer, row, column);
((JSComponentUI) c.getUI()).setTargetParent(table, mouseInputListener);
if (c != null)
((JSComponentUI) c.getUI()).setTargetParent(table, mouseInputListener);
return c;
}

Expand Down