Skip to content
This repository
Browse code

adds missing NULL check in CPluginDirectory::SetSetting

  • Loading branch information...
commit a2e3fe4e018bd50d4395aeca29a8d32cfce0d757 1 parent de8789a
authored

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

  1. 2  xbmc/filesystem/PluginDirectory.cpp
2  xbmc/filesystem/PluginDirectory.cpp
@@ -579,7 +579,7 @@ void CPluginDirectory::SetSetting(int handle, const CStdString &strID, const CSt
579 579
 {
580 580
   CSingleLock lock(m_handleLock);
581 581
   CPluginDirectory *dir = dirFromHandle(handle);
582  
-  if(dir->m_addon)
  582
+  if(dir && dir->m_addon)
583 583
     dir->m_addon->UpdateSetting(strID, value);
584 584
 }
585 585
 

0 notes on commit a2e3fe4

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