diff --git a/base/src/org/compiere/print/MPrintFormat.java b/base/src/org/compiere/print/MPrintFormat.java index bff861b04d..ab601812aa 100644 --- a/base/src/org/compiere/print/MPrintFormat.java +++ b/base/src/org/compiere/print/MPrintFormat.java @@ -799,7 +799,10 @@ public class MPrintFormat extends X_AD_PrintFormat if (pf == null) { pf = new MPrintFormat (ctx, AD_PrintFormat_ID, null); - s_formats.put(key, pf); + if (pf.get_ID() <= 0) + pf = null; + else + s_formats.put(key, pf); } return pf; } // get