Commit 728ed2ff authored by Thomas Guillem's avatar Thomas Guillem

macosx: fix null deref

parent e9692932
......@@ -1163,7 +1163,8 @@ static const float f_min_window_height = 307.;
} else {
PL_LOCK;
playlist_item_t *pl_item = playlist_ChildSearchName(p_playlist->p_root, [[item untranslatedTitle] UTF8String]);
[[[[VLCMain sharedInstance] playlist] model] changeRootItem:pl_item];
if (pl_item != NULL)
[[[[VLCMain sharedInstance] playlist] model] changeRootItem:pl_item];
PL_UNLOCK;
}
......
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