Skip to content

Commit af27b1b

Browse files
committed
catching exception if fileContent["Data"] is null
1 parent d38ecd8 commit af27b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/hook_global.wscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function RunFileValidation(ext, file) {
6464
if (isYamlFile) {
6565
data = fileContent;
6666
} else {
67-
data = fileContent["Data"]["RootChunk"];
67+
data = (fileContent["Data"] ?? {})["RootChunk"];
6868
}
6969
switch (ext) {
7070
case "anims":

0 commit comments

Comments
 (0)