fixed: avoid crashing due to slow starting pvr manager
authorJoakim Plate <elupus@ecce.se>
Wed, 10 Oct 2012 17:54:13 +0000 (19:54 +0200)
committerJoakim Plate <elupus@ecce.se>
Wed, 10 Oct 2012 17:55:30 +0000 (19:55 +0200)
xbmc/settings/GUIWindowSettingsCategory.cpp

index c5f2f7a..db0a01f 100644 (file)
@@ -718,7 +718,7 @@ void CGUIWindowSettingsCategory::UpdateSettings()
     else if (strSetting.Equals("pvrmanager.channelscan"))
     {
       CGUIControl *pControl = (CGUIControl *)GetControl(pSettingControl->GetID());
-      if (pControl) pControl->SetEnabled(g_guiSettings.GetBool("pvrmanager.enabled") && g_PVRClients->GetClientsSupportingChannelScan().size() > 0);
+      if (pControl) pControl->SetEnabled(g_guiSettings.GetBool("pvrmanager.enabled") && g_PVRClients && g_PVRClients->GetClientsSupportingChannelScan().size() > 0);
     }
     else if (strSetting.Equals("pvrmanager.channelmanager") || strSetting.Equals("pvrmenu.searchicons"))
     {