DetachedSong: check AllocatedPath::FromUTF8() result

This commit is contained in:
Max Kellermann 2015-10-20 12:11:44 +02:00
parent fc2154ee92
commit 8211d4a1c2
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ DetachedSong::Update()
if (IsAbsoluteFile()) {
const AllocatedPath path_fs =
AllocatedPath::FromUTF8(GetRealURI());
if (path_fs.IsNull())
return false;
return LoadFile(path_fs);
} else if (IsRemote()) {