From aadb69a1c53882ffa73a0a05ff9a24d9ad655141 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 12 May 2011 12:04:34 -0500 Subject: [PATCH] Fix #14 NPE on workflow activities http://hg.idempiere.com/idempiere/issue/14 --- .../org/adempiere/webui/component/WListItemRenderer.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java index 870a0addaf..e1d1a07a12 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java @@ -224,7 +224,9 @@ public class WListItemRenderer implements ListitemRenderer, EventListener, Listi else if (field instanceof Number) { if (m_tableColumns != null && columnIndex < m_tableColumns.size() - && m_tableColumns.get(columnIndex).getColumnClass().getName().equals(MImage.class.getName()) && field instanceof Integer) + && m_tableColumns.get(columnIndex).getColumnClass() != null + && m_tableColumns.get(columnIndex).getColumnClass().getName().equals(MImage.class.getName()) + && field instanceof Integer) { MImage mImage = MImage.get(Env.getCtx(), (Integer) field); AImage img = null; @@ -290,7 +292,9 @@ public class WListItemRenderer implements ListitemRenderer, EventListener, Listi } else if (field instanceof String) { - if (m_tableColumns != null && columnIndex < m_tableColumns.size() && m_tableColumns.get(columnIndex).getColumnClass().getName().equals(MImage.class.getName())) + if (m_tableColumns != null && columnIndex < m_tableColumns.size() + && m_tableColumns.get(columnIndex).getColumnClass() != null + && m_tableColumns.get(columnIndex).getColumnClass().getName().equals(MImage.class.getName())) { try { URL url = new URL(field.toString());