IDEMPIERE-724 Ticket #1004142: Null Data error
This commit is contained in:
parent
afca73d7b8
commit
579d32869b
|
@ -118,8 +118,11 @@ public final class ThemeManager {
|
||||||
public static org.zkoss.image.Image getClientWebLogo() throws IOException {
|
public static org.zkoss.image.Image getClientWebLogo() throws IOException {
|
||||||
MClientInfo cinfo = MClientInfo.get(Env.getCtx());
|
MClientInfo cinfo = MClientInfo.get(Env.getCtx());
|
||||||
if (cinfo.getLogoWeb_ID() > 0) {
|
if (cinfo.getLogoWeb_ID() > 0) {
|
||||||
MImage mImage = MImage.get(Env.getCtx(), cinfo.getLogoWeb_ID());
|
MImage mImage = MImage.get(Env.getCtx(), cinfo.getLogoWeb_ID());
|
||||||
return new AImage(mImage.getName(), mImage.getData());
|
if (mImage.getData() != null)
|
||||||
|
return new AImage(mImage.getName(), mImage.getData());
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
|
||||||
/* Using different approach: ImageEncoder supports only PNG and JPEG
|
/* Using different approach: ImageEncoder supports only PNG and JPEG
|
||||||
Image image = mImage.getImage();
|
Image image = mImage.getImage();
|
||||||
|
|
Loading…
Reference in New Issue