From 9acb39e8c6eb1f84957d9d2848c488c253e0e31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa?= Date: Wed, 11 Dec 2013 11:47:24 -0500 Subject: [PATCH] IDEMPIERE-1516 Performance indicators display fails when role user assigment inactive --- org.adempiere.base/src/org/compiere/model/MGoal.java | 2 ++ .../WEB-INF/src/org/adempiere/webui/apps/graph/WViewPI.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MGoal.java b/org.adempiere.base/src/org/compiere/model/MGoal.java index e12f40a120..7a82f81224 100644 --- a/org.adempiere.base/src/org/compiere/model/MGoal.java +++ b/org.adempiere.base/src/org/compiere/model/MGoal.java @@ -94,6 +94,8 @@ public class MGoal extends X_PA_Goal DB.close(rs, pstmt); rs = null; pstmt = null; } + if (list.size() == 0) + s_log.log (Level.WARNING, Msg.getMsg(ctx, "FindZeroRecords")); MGoal[] retValue = new MGoal[list.size ()]; list.toArray (retValue); return retValue; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WViewPI.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WViewPI.java index b3a2d2eadd..f4ec382efb 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WViewPI.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WViewPI.java @@ -16,7 +16,8 @@ public class WViewPI extends ADForm { options.chartHeight = 180; options.chartWidth = 180; WPAPanel paPanel = WPAPanel.get(options); - appendChild(paPanel); + if (paPanel != null) + appendChild(paPanel); } }