From 38ef57f99de484b37052d2186480f2397f21e863 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 26 Dec 2013 17:31:30 -0500 Subject: [PATCH] IDEMPIERE-1642 Window Customization with no window name give null on Recent Items / thanks to Nicolas Micoud (nmicoud) --- org.adempiere.base/src/org/compiere/model/MRecentItem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MRecentItem.java b/org.adempiere.base/src/org/compiere/model/MRecentItem.java index 394d3ec490..deaa67c253 100644 --- a/org.adempiere.base/src/org/compiere/model/MRecentItem.java +++ b/org.adempiere.base/src/org/compiere/model/MRecentItem.java @@ -29,6 +29,7 @@ import org.compiere.util.CCache; import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.Env; +import org.compiere.util.Util; import org.idempiere.distributed.IMessageService; import org.idempiere.distributed.ITopic; import org.osgi.service.event.Event; @@ -278,7 +279,7 @@ public class MRecentItem extends X_AD_RecentItem public String getLabel() { String windowName; MUserDefWin userDef = MUserDefWin.getBestMatch(getCtx(), getAD_Window_ID()); - if (userDef != null) { + if (userDef != null && !Util.isEmpty(userDef.getName())) { windowName = userDef.getName(); } else { MWindow win = new MWindow(getCtx(), getAD_Window_ID(), null);