We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c64e82 + 6278024 commit 982d595Copy full SHA for 982d595
src/GameFinder.StoreHandlers.Steam/Services/Parsers/AppManifestParser.cs
@@ -37,6 +37,14 @@ public static Result<AppManifest> ParseManifestFile(AbsolutePath manifestPath)
37
{
38
using var stream = manifestPath.Read();
39
40
+ if (stream.Length == 0)
41
+ {
42
+ return Result.Fail(
43
+ new Error("Manifest file is empty!")
44
+ .WithMetadata("Path", manifestPath.GetFullPath())
45
+ );
46
+ }
47
+
48
var kv = KVSerializer.Create(KVSerializationFormat.KeyValues1Text);
49
var appState = kv.Deserialize(stream, KVSerializerOptions.DefaultOptions);
50
0 commit comments