This commit is contained in:
parent
88f21c4d1a
commit
9d5f8f2ac6
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue