uifw/AvKon/src/eikfrlbd.cpp
branchRCL_3
changeset 16 71dd06cfe933
parent 15 08e69e956a8c
child 18 0aa5fbdfbc30
--- a/uifw/AvKon/src/eikfrlbd.cpp	Wed Mar 31 21:59:52 2010 +0300
+++ b/uifw/AvKon/src/eikfrlbd.cpp	Wed Apr 14 16:14:00 2010 +0300
@@ -3064,8 +3064,11 @@
     TInt aFirstIndex,
     TInt aSecondIndex )
     {
-    iExtension->iFirstWordWrappedSubcellIndex = (TInt16)aFirstIndex;
-    iExtension->iSecondWordWrappedSubcellIndex = (TInt16)aSecondIndex;
+    if ( iExtension ) 
+        {
+        iExtension->iFirstWordWrappedSubcellIndex = (TInt16)aFirstIndex;
+        iExtension->iSecondWordWrappedSubcellIndex = (TInt16)aSecondIndex;
+        }
     }
 
 EXPORT_C void CFormattedCellListBoxData::EnableMarqueeL(TBool aEnable)
@@ -4128,6 +4131,7 @@
         aGc.UseFont(CEikonEnv::Static()->NormalFont());
         aGc.DrawText(TPtrC(),aRect,0); // use draw text so that don't need to change pen color/style
         aGc.DiscardFont(); // Release the font cache
+        _AKNTRACE_FUNC_EXIT;
         return;
         }
     const CFont* font=SubCellFont(0);
@@ -4377,6 +4381,11 @@
             CGraphicsContext::TTextAlign align=sc->iAlign;
             if (!sc->iGraphics)
                 {
+                if ( !iExtension )
+                    {
+                    _AKNTRACE_FUNC_EXIT;
+                    return;
+                    }
                 const CFont* rowAndCellFont=RowAndSubCellFont(iExtension->iCurrentlyDrawnItemIndex,subcell);
                 const CFont* cellFont=sc->iBaseFont;
                 const CFont* tempFont=(cellFont) ? cellFont : font;