pkiutilities/CertmanUi/SRC/CertmanuicontainerDevice.cpp
branchRCL_3
changeset 21 09b1ac925e3f
parent 5 3b17fc5c9564
child 22 03674e5abf46
--- a/pkiutilities/CertmanUi/SRC/CertmanuicontainerDevice.cpp	Thu Aug 19 10:45:23 2010 +0300
+++ b/pkiutilities/CertmanUi/SRC/CertmanuicontainerDevice.cpp	Tue Aug 31 16:04:40 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -80,7 +80,14 @@
     CreateWindowL();
     CreateListBoxL();
     UpdateListBoxL( aCurrentPosition, aTopItem );
-    iListBox->ItemDrawer()->ColumnData()->SetIconArray( iIconHandler->CreateIconArrayL() );
+
+    if ( iListBox )
+        {
+        // Creates graphic.
+        iListBox->ItemDrawer()->ColumnData()->
+        SetIconArray( iIconHandler->CreateIconArrayL() );
+    }
+
     SetRect( aRect );
 
     CERTMANUILOGGER_LEAVEFN( " CCertManUIContainerDevice::ConstructL" );