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 (); JLabel label = (JLabel)e.getSource ();
String key = getName (); String key = getName ();
if (key == PRESS) if (key.equals(PRESS))
{ {
doPress (label); doPress (label);
} }

View File

@ -78,7 +78,7 @@ public class CComboBox extends JComboBox
public CComboBox(final Object items[], String key) public CComboBox(final Object items[], String key)
{ {
this(items); this(items);
if (key == null) if (key.equals(null))
return; return;
for (int i = 0; i < 0; i++) 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); s_prop.setProperty(key, SecureInterface.CLEARVALUE_START + value + SecureInterface.CLEARVALUE_END);
else else
{ {
if (value == null) if (value.equals(null))
s_prop.setProperty(key, ""); s_prop.setProperty(key, "");
else else
{ {

View File

@ -446,10 +446,10 @@ public class WebField
{ {
ValueNamePair p = (ValueNamePair)list[i]; ValueNamePair p = (ValueNamePair)list[i];
key = p.getValue(); key = p.getValue();
if (key == null || key.length() == 0) if (key.equals(null) || key.length() == 0)
key = "??"; key = "??";
String name = p.getName(); String name = p.getName();
if (name == null || name.length() == 0) if (name.equals(null) || name.length() == 0)
name = "???"; name = "???";
name = Util.maskHTML(name); name = Util.maskHTML(name);
options[i] = new option(key).addElement(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 public static String getProperty (String key) throws SQLException
{ {
if (key == null || key.length() == 0) if (key .equals(null) || key.length() == 0)
return "null"; return "null";
return System.getProperty(key, "NotFound"); return System.getProperty(key, "NotFound");
} // environment } // environment

View File

@ -66,7 +66,7 @@ public class Compiere implements Serializable
*/ */
public static String getProperty (String key) throws SQLException public static String getProperty (String key) throws SQLException
{ {
if (key == null || key.length() == 0) if (key.equals(null) || key.length() == 0)
return "null"; return "null";
return System.getProperty(key, "NotFound"); return System.getProperty(key, "NotFound");
} // environment } // environment