Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2171 from popcornmix/headless_segfault

Protect pointer dereference to avoid a segfault when running headless.
  • Loading branch information...
commit 4039edbacc15f2f168e3b30d36160c08ddaeb298 2 parents 6f9fb70 + 01789cb
@Memphiz Memphiz authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/video/VideoInfoScanner.cpp
View
3  xbmc/video/VideoInfoScanner.cpp
@@ -86,7 +86,8 @@ namespace VIDEO
{
CGUIDialogExtendedProgressBar* dialog =
(CGUIDialogExtendedProgressBar*)g_windowManager.GetWindow(WINDOW_DIALOG_EXT_PROGRESS);
- m_handle = dialog->GetHandle(g_localizeStrings.Get(314));
+ if (dialog)
+ m_handle = dialog->GetHandle(g_localizeStrings.Get(314));
}
m_bCanInterrupt = true;

0 comments on commit 4039edb

Please sign in to comment.
Something went wrong with that request. Please try again.