[ 1659217 ] WAN: org.compiere.db.CConnection.getInfo() throws NPE

This commit is contained in:
teo_sarca 2007-02-13 19:05:35 +00:00
parent a82fd8bd6b
commit cb075025a3
1 changed files with 2 additions and 2 deletions

View File

@ -1200,8 +1200,8 @@ public class CConnection implements Serializable
*/
public String getInfo ()
{
StringBuffer sb = new StringBuffer (m_info[0]);
sb.append (" - ").append (m_info[1])
StringBuffer sb = new StringBuffer (m_info[0] != null ? m_info[0] : "");
sb.append (" - ").append (m_info[1] != null ? m_info[1] : "")
.append ("\n").append (getDatabase ().toString ())
.append ("\nAppsServerOK=").append (isAppsServerOK (false))
.append (", DatabaseOK=").append (isDatabaseOK ());