mpxplugins/viewplugins/views/pdsbplaybackview/src/mpxpdsbplaybackviewimp.cpp
branchRCL_3
changeset 9 13afc0e517bd
parent 0 ff3acec5bc43
child 15 a1247965635c
--- a/mpxplugins/viewplugins/views/pdsbplaybackview/src/mpxpdsbplaybackviewimp.cpp	Tue Feb 02 00:09:33 2010 +0200
+++ b/mpxplugins/viewplugins/views/pdsbplaybackview/src/mpxpdsbplaybackviewimp.cpp	Fri Feb 19 22:48:30 2010 +0200
@@ -887,13 +887,16 @@
             TMPXPlaybackState state = iPlaybackUtility->StateL();
             CAknButton* pausePlayControl;
             pausePlayControl = (CAknButton*)(toolbar->ComponentControl( 1 ));
-            if ((state == EPbStateInitialising) || (state == EPbStatePlaying))
+            if (pausePlayControl)
                 {
-                pausePlayControl->SetCurrentState(0, ETrue);
-                }
-            else
-                {
-                pausePlayControl->SetCurrentState(1, ETrue);
+                if( (state == EPbStateInitialising) || (state == EPbStatePlaying) )
+                    {
+                    pausePlayControl->SetCurrentState(0, ETrue);
+                    }
+               else
+                   {
+                   pausePlayControl->SetCurrentState(1, ETrue);
+                   }
                 }
             if ( state == EPbStatePlaying ||
                     state == EPbStatePaused ||