This commit is contained in:
parent
88f21c4d1a
commit
9d5f8f2ac6
|
@ -94,7 +94,7 @@ public class CompiereLabelUI extends MetalLabelUI
|
|||
{
|
||||
JLabel label = (JLabel)e.getSource ();
|
||||
String key = getName ();
|
||||
if (key == PRESS)
|
||||
if (key.equals(PRESS))
|
||||
{
|
||||
doPress (label);
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ public class CComboBox extends JComboBox
|
|||
public CComboBox(final Object items[], String key)
|
||||
{
|
||||
this(items);
|
||||
if (key == null)
|
||||
if (key.equals(null))
|
||||
return;
|
||||
for (int i = 0; i < 0; i++)
|
||||
{
|
||||
|
|
|
@ -404,7 +404,7 @@ public final class Ini implements Serializable
|
|||
s_prop.setProperty(key, SecureInterface.CLEARVALUE_START + value + SecureInterface.CLEARVALUE_END);
|
||||
else
|
||||
{
|
||||
if (value == null)
|
||||
if (value.equals(null))
|
||||
s_prop.setProperty(key, "");
|
||||
else
|
||||
{
|
||||
|
|
|
@ -446,10 +446,10 @@ public class WebField
|
|||
{
|
||||
ValueNamePair p = (ValueNamePair)list[i];
|
||||
key = p.getValue();
|
||||
if (key == null || key.length() == 0)
|
||||
if (key.equals(null) || key.length() == 0)
|
||||
key = "??";
|
||||
String name = p.getName();
|
||||
if (name == null || name.length() == 0)
|
||||
if (name.equals(null) || name.length() == 0)
|
||||
name = "???";
|
||||
name = Util.maskHTML(name);
|
||||
options[i] = new option(key).addElement(name);
|
||||
|
|
|
@ -66,7 +66,7 @@ public class Adempiere implements Serializable
|
|||
*/
|
||||
public static String getProperty (String key) throws SQLException
|
||||
{
|
||||
if (key == null || key.length() == 0)
|
||||
if (key .equals(null) || key.length() == 0)
|
||||
return "null";
|
||||
return System.getProperty(key, "NotFound");
|
||||
} // environment
|
||||
|
|
|
@ -66,7 +66,7 @@ public class Compiere implements Serializable
|
|||
*/
|
||||
public static String getProperty (String key) throws SQLException
|
||||
{
|
||||
if (key == null || key.length() == 0)
|
||||
if (key.equals(null) || key.length() == 0)
|
||||
return "null";
|
||||
return System.getProperty(key, "NotFound");
|
||||
} // environment
|
||||
|
|
Loading…
Reference in New Issue