Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
MediaLibraryKit
Commits
f4598267
Commit
f4598267
authored
Oct 09, 2017
by
Carola
Browse files
return early if there is no url
parent
3e6442ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/MLFile.m
View file @
f4598267
...
...
@@ -78,6 +78,7 @@ NSString *const MLFileThumbnailWasUpdated = @"MLFileThumbnailWasUpdated";
+
(
NSArray
*
)
fileForURL
:(
NSURL
*
)
url
;
{
if
(
!
url
)
return
nil
;
NSFetchRequest
*
request
=
[[
NSFetchRequest
alloc
]
init
];
NSManagedObjectContext
*
moc
=
[[
MLMediaLibrary
sharedMediaLibrary
]
managedObjectContext
];
if
(
!
moc
||
moc
.
persistentStoreCoordinator
==
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment