Skip to content

Commit

Permalink
fix psb.Object null, Fix #141
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyssesWu committed Dec 20, 2024
1 parent 0bfc6f8 commit 6cf5927
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion FreeMote.Psb/Types/M2Types.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SprBlockType : BaseImageType, IPsbType

public bool IsThisType(PSB psb)
{
if (psb.Objects.All(kv => kv.Value is PsbDictionary {Count: 3} dic && dic.ContainsKey("w") &&
if (psb.Objects != null && psb.Objects.All(kv => kv.Value is PsbDictionary {Count: 3} dic && dic.ContainsKey("w") &&
dic.ContainsKey("h") &&
dic.ContainsKey("image"))) return true;

Expand Down
4 changes: 2 additions & 2 deletions FreeMote.Tools.PsBuild/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

[assembly: Guid("d877dbdb-41d7-4c6f-9a46-957cecdaefa8")]

[assembly: AssemblyVersion("4.0.1.0")]
[assembly: AssemblyFileVersion("4.0.1.0")]
[assembly: AssemblyVersion("4.0.2.0")]
[assembly: AssemblyFileVersion("4.0.2.0")]
4 changes: 2 additions & 2 deletions FreeMote.Tools.PsbDecompile/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

[assembly: Guid("943fe440-32bb-4caf-a1da-5f38de7f9b92")]

[assembly: AssemblyVersion("4.0.1.0")]
[assembly: AssemblyFileVersion("4.0.1.0")]
[assembly: AssemblyVersion("4.0.2.0")]
[assembly: AssemblyFileVersion("4.0.2.0")]

0 comments on commit 6cf5927

Please sign in to comment.