if (!m_defaultIdentity) return NS_ERROR_NULL_POINTER;
nsresult rv; if (!m_identities) { rv = Init(); if (NS_FAILED(rv)) return rv; }  nsISupports* idsupports; rv = m_identities->GetElementAt(0, &idsupports); if (NS_FAILED(rv)) return rv;
nsMsgAccount::GetDefaultIdentity(nsIMsgIdentity * *aDefaultIdentity){  if (!aDefaultIdentity) return NS_ERROR_NULL_POINTER;  if (!m_defaultIdentity) return NS_ERROR_NULL_POINTER;    *aDefaultIdentity = m_defaultIdentity;  return NS_OK;}