diff -r 2dac0fdba72b -r 191387a8b767 photosgallery/slideshow/settingsdialog/src/shwslideshowsettingsdialog.cpp --- a/photosgallery/slideshow/settingsdialog/src/shwslideshowsettingsdialog.cpp Wed Apr 14 15:57:24 2010 +0300 +++ b/photosgallery/slideshow/settingsdialog/src/shwslideshowsettingsdialog.cpp Tue Apr 27 16:37:53 2010 +0300 @@ -156,7 +156,10 @@ TRACER("CShwSlideshowSettingsDialog::SetSlShwToolbarVisibility"); CAknAppUi* appUi = iAvkonAppUi; __ASSERT_DEBUG(appUi, Panic(EGlxPanicNullPointer)); - + if (!appUi) + { + return; + } CAknToolbar* popupToolbar = appUi->PopupToolbar(); if(popupToolbar) {