--- xap_Frame.cpp.orig	Thu Jan 31 19:17:07 2002
+++ xap_Frame.cpp	Sun Mar 17 18:11:52 2002
@@ -539,11 +539,13 @@
 
 const char * XAP_Frame::getFilename(void) const
 {
+	if (m_pDoc == NULL) return NULL;
 	return m_pDoc->getFilename();
 }
 
 bool XAP_Frame::isDirty(void) const
 {
+	if (m_pDoc == NULL) return false;
 	return m_pDoc->isDirty();
 }
 
