VPanel: fixed cmp of strings using "=="

thanx to jhonny1977 - https://sourceforge.net/forum/message.php?msg_id=5196185
This commit is contained in:
teo_sarca 2008-08-26 08:21:04 +00:00
parent 24760345bf
commit c1ff1d2c6b
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ import org.compiere.swing.CollapsiblePanel;
import org.compiere.util.CLogger;
import org.compiere.util.DisplayType;
import org.compiere.util.Language;
import org.compiere.util.Util;
import org.jdesktop.swingx.JXCollapsiblePane;
import org.jdesktop.swingx.border.DropShadowBorder;
@ -259,7 +260,7 @@ public final class VPanel extends CTabbedPane
//[ 1757088 ] // sets top
String fieldGroup = mField.getFieldGroup();
String fieldGroupType = mField.getFieldGroupType();
if (fieldGroup == "")
if (Util.isEmpty(fieldGroup))
{
fieldGroup = m_oldFieldGroup;
fieldGroupType = m_oldFieldGroupType;