diff -r b7904b40483f -r ff572005ac23 xcfw/src/xcfwengine.cpp --- a/xcfw/src/xcfwengine.cpp Mon Jan 18 20:32:13 2010 +0200 +++ b/xcfw/src/xcfwengine.cpp Tue Jan 26 12:11:15 2010 +0200 @@ -1383,8 +1383,12 @@ } } } - //Store DTD name to tree, so it is available at save. - iTree->SetDTDNameL( iDTD->Des() ); + + if ( iDTD ) + { + //Store DTD name to tree, so it is available at save. + iTree->SetDTDNameL( iDTD->Des() ); + } } // End of File