videocollection/videocollectionview/tsrc/testvideocollectionuiloader/src/testvideocollectionuiloader.cpp
--- a/videocollection/videocollectionview/tsrc/testvideocollectionuiloader/src/testvideocollectionuiloader.cpp Thu May 27 12:53:14 2010 +0300
+++ b/videocollection/videocollectionview/tsrc/testvideocollectionuiloader/src/testvideocollectionuiloader.cpp Fri Jun 11 13:39:54 2010 +0300
@@ -865,9 +865,9 @@
{
if (name == DOCML_NAME_VIEW)
{
- HbMainWindow *window = hbInstance->allMainWindows().at(0);
- if (window)
+ if(hbInstance->allMainWindows().count())
{
+ HbMainWindow *window = hbInstance->allMainWindows().at(0);
HbView *view = qobject_cast<HbView*>(object);
if (view)
{