BF GridTab.toString() is throwing NullPointerException if m_vo is null

This commit is contained in:
teo_sarca 2008-05-20 16:00:59 +00:00
parent 1e80c340be
commit ea24bb05f9
1 changed files with 4 additions and 2 deletions

View File

@ -2695,9 +2695,11 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
*/
public String toString()
{
String retValue = "MTab #" + m_vo.TabNo;
String retValue = "MTab #";
if (m_vo != null)
retValue += " " + m_vo.Name + " (" + m_vo.AD_Tab_ID + ")";
retValue += m_vo.TabNo + " " + m_vo.Name + " (" + m_vo.AD_Tab_ID + ")";
else
retValue += "???";
return retValue;
} // toString