Skip to content

Commit 8bbe697

Browse files
author
Benoit Hudson
committed
Fix initialization bug: FbxPrefab string may be null.
That caused an exception to be thrown when you manually created an FbxPrefab.
1 parent 79941e0 commit 8bbe697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/FbxPrefab.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public FbxRepresentation(string json, ref int index) {
295295
}
296296

297297
public FbxRepresentation(string json) {
298-
if (json.Length == 0) { return; }
298+
if (string.IsNullOrEmpty(json)) { return; }
299299
int index = 0;
300300
InitFromJson(json, ref index);
301301
}

0 commit comments

Comments
 (0)