[ 1740835 ] NPE when closing a window

http://sourceforge.net/tracker/index.php?func=detail&aid=1740835&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-06-21 10:20:43 +00:00
parent 33ff835a84
commit f59f754f74
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@ import org.compiere.util.*;
*
* @author Jorg Janke
* @version $Id: VLookup.java,v 1.5 2006/10/06 00:42:38 jjanke Exp $
*
* @author Teo Sarca - BF [ 1740835 ]
*/
public class VLookup extends JComponent
implements VEditor, ActionListener, FocusListener
@ -1219,6 +1221,8 @@ public class VLookup extends JComponent
*/
public void focusGained (FocusEvent e)
{
if (m_combo == null || m_combo.getEditor() == null)
return;
if ((e.getSource() != m_combo && e.getSource() != m_combo.getEditor().getEditorComponent())
|| e.isTemporary() || m_haveFocus || m_lookup == null)
return;