Permalink
Browse files

merge from 2.0.x - fix the IAE when valueClass is null, in some stran…

…ge cases

git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1428503 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 0c53ccb commit 9711dc7407eb61dea12a0aa3e10dfc1ec97c9323 Sandro Martini committed Jan 3, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 wtk/src/org/apache/pivot/wtk/content/TableViewMultiCellRenderer.java
@@ -324,6 +324,7 @@ public void render(Object row, int rowIndex, int columnIndex,
TableView.CellRenderer cellRenderer = null;
Class<?> valueClass = (cellData == null ? null : cellData.getClass());
while (cellRenderer == null
+ && valueClass != null
&& valueClass != Object.class) {
cellRenderer = cellRenderers.get(valueClass);

0 comments on commit 9711dc7

Please sign in to comment.