Commit 2c7e82b5 authored by Felix Paul Kühne's avatar Felix Paul Kühne

ATV: add missing sanity check

parent 10abe665
......@@ -344,7 +344,9 @@
for (NSUInteger index = 0; index < itemsCount; ++index) {
NSIndexPath *indexPath = [NSIndexPath indexPathForItem:index inSection:section];
id<VLCLocalNetworkService> service = [discoveryController networkServiceForIndexPath:indexPath];
[newNetworkServices addObject:service];
if (service != nil) {
[newNetworkServices addObject:service];
}
}
}
......
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