Safer comparison with null values

This commit is contained in:
Carlos Ruiz 2007-03-05 14:28:00 +00:00
parent d1f31eaf6b
commit 2beb638443
1 changed files with 1 additions and 1 deletions

View File

@ -1040,7 +1040,7 @@ public class GridField
else
{
String LinkColumnName = Env.getContext(m_vo.ctx, m_vo.WindowNo, m_vo.TabNo, "LinkColumnName");
if (LinkColumnName.length() == 0)
if (LinkColumnName == null || LinkColumnName.length() == 0)
m_parentValue = Boolean.FALSE; // teo_sarca, [ 1673886 ]
else
m_parentValue = Boolean.valueOf(m_vo.ColumnName.equals(LinkColumnName));