Commit 8211d4a1 authored by Max Kellermann's avatar Max Kellermann

DetachedSong: check AllocatedPath::FromUTF8() result

parent fc2154ee
......@@ -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()) {
......
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