mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Add null check on stream
This commit is contained in:
parent
f00140f0a4
commit
6f59e5feec
@ -15,7 +15,7 @@ namespace osu.Game.Beatmaps.IO
|
||||
AddReader<OszArchiveReader>((storage, path) =>
|
||||
{
|
||||
using (var stream = storage.GetStream(path))
|
||||
return ZipFile.IsZipFile(stream, false);
|
||||
return stream != null && ZipFile.IsZipFile(stream, false);
|
||||
});
|
||||
OsuLegacyDecoder.Register();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user