--- a/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdisplay.cpp Tue May 11 16:07:20 2010 +0300
+++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdisplay.cpp Tue May 25 12:34:19 2010 +0300
@@ -152,7 +152,10 @@
TBool focused = aEvent == SwtWsEventAppFocusGained;
// UiUtils intentionally handled separately although it is an app focus observer also.
- iUiUtils->HandleAppFocusChangeL(focused);
+ if (iUiUtils)
+ {
+ iUiUtils->HandleAppFocusChangeL(focused);
+ }
// Inform other observers.
const TInt count = iAppFocusObservers.Count();
@@ -182,7 +185,10 @@
if (aEvent == CSwtLafFacade::GetConstant(CSwtLafFacade::EBrowserFreeRam)
|| aEvent == CSwtLafFacade::GetConstant(CSwtLafFacade::EBrowserMemoryGood))
{
- iUiUtils->HandleFreeRamEventL(aEvent);
+ if (iUiUtils)
+ {
+ iUiUtils->HandleFreeRamEventL(aEvent);
+ }
}
}