[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
Oliver.Kellogg at t-online.de
Thu Sep 4 03:25:07 UTC 2003
CVS commit by okellogg:
Strengthen defense.
M +8 -0 umllistviewitem.cpp 1.21
--- kdesdk/umbrello/umbrello/umllistviewitem.cpp #1.20:1.21
@@ -38,4 +38,8 @@ UMLListViewItem::UMLListViewItem( UMLLis
UMLListViewItem::UMLListViewItem(UMLListViewItem * parent, QString name, Uml::ListView_Type t,UMLObject*o) : QListViewItem(parent, name) {
m_bCreating = false;
+ if (s_pListView == NULL) {
+ kdDebug() << "UMLListViewItem internal error 1: s_pListView is NULL" << endl;
+ exit(1);
+ }
m_Data.setType( t );
m_Data.setUMLObject( o );
@@ -58,4 +62,8 @@ UMLListViewItem::UMLListViewItem(UMLList
UMLListViewItem::UMLListViewItem(UMLListViewItem * parent, QString name, Uml::ListView_Type t,int id) : QListViewItem(parent, name) {
m_bCreating = false;
+ if (s_pListView == NULL) {
+ kdDebug() << "UMLListViewItem internal error 2: s_pListView is NULL" << endl;
+ exit(1);
+ }
m_Data.setType( t );
m_Data.setUMLObject( 0 );
More information about the umbrello-devel
mailing list