From 09474f86aa9f99998d7d03d79cbde3697a05a0f6 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Thu, 22 Oct 2009 17:00:09 +0000 Subject: [PATCH] Bf [2884045] - VLookup behavior when hitting enter on empty text field http://sourceforge.net/tracker/?func=detail&atid=879332&aid=2884045&group_id=176962 --- client/src/org/compiere/grid/ed/VLookup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/org/compiere/grid/ed/VLookup.java b/client/src/org/compiere/grid/ed/VLookup.java index c5a48970d4..9a3173204c 100644 --- a/client/src/org/compiere/grid/ed/VLookup.java +++ b/client/src/org/compiere/grid/ed/VLookup.java @@ -1007,7 +1007,7 @@ public class VLookup extends JComponent { String text = m_text.getText(); // Nothing entered, just pressing enter again => ignore - teo_sarca BF [ 1834399 ] - if (text != null && text.equals(m_lastDisplay)) + if (text != null && text.length() > 0 && text.equals(m_lastDisplay)) { log.finest("Nothing entered [SKIP]"); return;