diff --git a/client/src/org/compiere/print/ReportCtl.java b/client/src/org/compiere/print/ReportCtl.java index 981c78411e..e42a67b65c 100644 --- a/client/src/org/compiere/print/ReportCtl.java +++ b/client/src/org/compiere/print/ReportCtl.java @@ -257,10 +257,7 @@ public class ReportCtl ReportEngine re = ReportEngine.get (Env.getCtx(), type, Record_ID); if (re == null) { - if(Ini.isClient()) - ADialog.error(0, null, "NoDocPrintFormat"); - else - FDialog.error(0, (Component) null, "NoDocPrintFormat"); + ADialog.error(0, null, "NoDocPrintFormat"); return false; }