Commit fbfcdf02 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

macosx: Assert() for special error case.

Note: We should probably throw exception, and handle them a bit more gracefully, as we do in vlc_app.
parent 340a7d38
...@@ -305,11 +305,10 @@ static VLCSimplePrefs *_o_sharedInstance = nil; ...@@ -305,11 +305,10 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
[object removeAllItems]; [object removeAllItems];
p_item = config_FindConfig( VLC_OBJECT(p_intf), name ); p_item = config_FindConfig( VLC_OBJECT(p_intf), name );
if( !p_item )
{ /* serious problem, if no item found */
NSLog( @"serious problem, item not found" ); assert( p_item );
return;
}
for( int i = 0; i < p_item->i_list; i++ ) for( int i = 0; i < p_item->i_list; i++ )
{ {
NSMenuItem *mi; NSMenuItem *mi;
...@@ -337,11 +336,10 @@ static VLCSimplePrefs *_o_sharedInstance = nil; ...@@ -337,11 +336,10 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
[object removeAllItems]; [object removeAllItems];
p_item = config_FindConfig( VLC_OBJECT(p_intf), name ); p_item = config_FindConfig( VLC_OBJECT(p_intf), name );
if( !p_item )
{ /* serious problem, if no item found */
NSLog( @"serious problem, item not found" ); assert( p_item );
return;
}
for( int i = 0; i < p_item->i_list; i++ ) for( int i = 0; i < p_item->i_list; i++ )
{ {
NSMenuItem *mi; NSMenuItem *mi;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment