From a9a32185173c503d9289ff07ffd26c5114f4ea59 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 17 Apr 2018 10:33:40 +0200 Subject: [PATCH] IDEMPIERE-3690 java.lang.NullPointerException when inactive al document status --- .../org/adempiere/webui/apps/graph/WDocumentStatusPanel.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WDocumentStatusPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WDocumentStatusPanel.java index a929057b48..e03f4a83ac 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WDocumentStatusPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WDocumentStatusPanel.java @@ -56,15 +56,13 @@ public class WDocumentStatusPanel extends Panel { /** * Get Panel if User has Document Status Indicators - * @return panel pr null + * @return panel */ public static WDocumentStatusPanel get() { int AD_User_ID = Env.getAD_User_ID(Env.getCtx()); int AD_Role_ID = Env.getAD_Role_ID(Env.getCtx()); MDocumentStatus[] indicators = MDocumentStatus.getDocumentStatusIndicators(Env.getCtx(), AD_User_ID, AD_Role_ID); - if (indicators.length == 0) - return null; return new WDocumentStatusPanel(indicators); }