IDEMPIERE-1516 Performance indicators display fails when role user assigment inactive

This commit is contained in:
Jesús García 2013-12-11 11:47:24 -05:00
parent c50915609c
commit 9acb39e8c6
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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);
}
}