DetachedSong: check AllocatedPath::FromUTF8() result
This commit is contained in:
@@ -179,6 +179,8 @@ DetachedSong::Update()
|
|||||||
if (IsAbsoluteFile()) {
|
if (IsAbsoluteFile()) {
|
||||||
const AllocatedPath path_fs =
|
const AllocatedPath path_fs =
|
||||||
AllocatedPath::FromUTF8(GetRealURI());
|
AllocatedPath::FromUTF8(GetRealURI());
|
||||||
|
if (path_fs.IsNull())
|
||||||
|
return false;
|
||||||
|
|
||||||
return LoadFile(path_fs);
|
return LoadFile(path_fs);
|
||||||
} else if (IsRemote()) {
|
} else if (IsRemote()) {
|
||||||
|
Reference in New Issue
Block a user