mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-09 12:32:56 +08:00
no more NullPointerException pls
This commit is contained in:
parent
2350f0ebe2
commit
376c668dd9
@ -705,6 +705,7 @@ public class GenshinAvatar {
|
||||
.setExpLevel(10)
|
||||
.setExpNumber(6325); // Highest Level
|
||||
|
||||
if (this.getFetterList() != null) {
|
||||
for (int i = 0; i < this.getFetterList().size(); i++) {
|
||||
avatarFetter.addFetterList(
|
||||
FetterData.newBuilder()
|
||||
@ -712,6 +713,7 @@ public class GenshinAvatar {
|
||||
.setFetterState(FetterState.FINISH.getValue())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
AvatarInfo.Builder avatarInfo = AvatarInfo.newBuilder()
|
||||
.setAvatarId(this.getAvatarId())
|
||||
|
Loading…
Reference in New Issue
Block a user