BF [ 1949649 ] MPrintFormat.get() should return null if not found

This commit is contained in:
teo_sarca 2008-04-23 13:05:20 +00:00
parent 9a1d6791dd
commit 96dd2d3f66
1 changed files with 4 additions and 1 deletions

View File

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