Skip to content

Commit

Permalink
CGUIWindowManager: Protect against null window access
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Mar 31, 2017
1 parent ec9954a commit f4e9941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/guilib/GUIWindowManager.cpp
Expand Up @@ -1197,7 +1197,7 @@ CGUIWindow* CGUIWindowManager::GetWindow(std::type_index type) const
CGUIDialog* CGUIWindowManager::GetDialog(int id) const
{
CGUIWindow *window = GetWindow(id);
if (window->IsDialog())
if (window && window->IsDialog())
return dynamic_cast<CGUIDialog*>(window);
return nullptr;
}
Expand Down

0 comments on commit f4e9941

Please sign in to comment.