1006064 NPE / IDEMPIERE-3115

This commit is contained in:
Heng Sin Low 2016-05-12 23:32:20 +08:00
parent 60244ffc97
commit 27a4b74e69
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class MStyle extends X_AD_Style {
public X_AD_StyleLine[] getStyleLines() {
if (m_lines == null) {
Query query = new Query(Env.getCtx(), I_AD_StyleLine.Table_Name, "AD_Style_ID=?", null);
Query query = new Query(Env.getCtx(), I_AD_StyleLine.Table_Name, "AD_Style_ID=? AND InlineStyle IS NOT NULL", null);
List<X_AD_StyleLine> lines = query.setParameters(getAD_Style_ID()).setOnlyActiveRecords(true).setOrderBy("Line").list();
m_lines = lines.toArray(new X_AD_StyleLine[0]);
}