fix: offline account crash.

This commit is contained in:
huanghongxun 2021-09-28 01:44:57 +08:00
parent 8a3cdfb14c
commit c66cea41bd

View File

@ -149,7 +149,7 @@ public class OfflineAccount extends Account {
return mapOf(
pair("uuid", UUIDTypeAdapter.fromUUID(uuid)),
pair("username", username),
pair("skin", skin.toStorage())
pair("skin", skin == null ? null : skin.toStorage())
);
}