Skip to content
This repository
Browse code

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 authored February 03, 2013

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  xbmc/video/VideoInfoScanner.cpp
3  xbmc/video/VideoInfoScanner.cpp
@@ -86,7 +86,8 @@ namespace VIDEO
86 86
       {
87 87
         CGUIDialogExtendedProgressBar* dialog =
88 88
           (CGUIDialogExtendedProgressBar*)g_windowManager.GetWindow(WINDOW_DIALOG_EXT_PROGRESS);
89  
-        m_handle = dialog->GetHandle(g_localizeStrings.Get(314));
  89
+        if (dialog)
  90
+           m_handle = dialog->GetHandle(g_localizeStrings.Get(314));
90 91
       }
91 92
 
92 93
       m_bCanInterrupt = true;

0 notes on commit 4039edb

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