src/hbcore/utils/hbxmlloaderbaseactions_p.cpp
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 5 627c4a0fd0e7
--- a/src/hbcore/utils/hbxmlloaderbaseactions_p.cpp	Mon May 03 12:48:33 2010 +0300
+++ b/src/hbcore/utils/hbxmlloaderbaseactions_p.cpp	Fri May 14 16:09:54 2010 +0300
@@ -146,7 +146,7 @@
          ++it ) {
         QObject *object = it.value().first.data();
 
-        if (it.value().second == HbXml::WIDGET) {
+        if (object && it.value().second == HbXml::WIDGET) {
             QGraphicsWidget *asWidget = static_cast<QGraphicsWidget *>(object);
             if (!asWidget->parentItem() && !asWidget->parent()) {
                 mTopObjectMap.insert(it.key(), it.value());