mjudd 2007-03-07 00:20:08 +00:00
parent 88f21c4d1a
commit 9d5f8f2ac6
6 changed files with 7 additions and 7 deletions

View File

@ -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);
}

View File

@ -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++)
{

View File

@ -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
{

View File

@ -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);

View File

@ -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

View File

@ -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