diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java b/zkwebui/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java index 20c10851f8..a9b7446fac 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java @@ -207,7 +207,10 @@ public class WImageDialog extends Window implements EventListener // Save info m_mImage.setName(fileName); m_mImage.setImageURL(fileName); - m_mImage.setBinaryData(image.getContent().getByteData()); + if (image.getContent() != null) + m_mImage.setBinaryData(image.getContent().getByteData()); + else + m_mImage.setBinaryData(null); } // cmd_file /**