Fix a crash when a null Prefab field gets synchronized.
@@ -37,6 +37,9 @@ public String getAsString(Prefab item) {
@Override
public Prefab getFromString(String representation) {
+ if (representation == null) {
+ return null;
+ }
return Assets.getPrefab(representation).orElse(null);
}
}
