Commit 376c668d authored by Yazawazi's avatar Yazawazi Committed by GitHub
Browse files

no more NullPointerException pls

parent 2350f0eb
...@@ -705,12 +705,14 @@ public class GenshinAvatar { ...@@ -705,12 +705,14 @@ public class GenshinAvatar {
.setExpLevel(10) .setExpLevel(10)
.setExpNumber(6325); // Highest Level .setExpNumber(6325); // Highest Level
for (int i = 0; i < this.getFetterList().size(); i++) { if (this.getFetterList() != null) {
avatarFetter.addFetterList( for (int i = 0; i < this.getFetterList().size(); i++) {
FetterData.newBuilder() avatarFetter.addFetterList(
.setFetterId(this.getFetterList().get(i)) FetterData.newBuilder()
.setFetterState(FetterState.FINISH.getValue()) .setFetterId(this.getFetterList().get(i))
); .setFetterState(FetterState.FINISH.getValue())
);
}
} }
AvatarInfo.Builder avatarInfo = AvatarInfo.newBuilder() AvatarInfo.Builder avatarInfo = AvatarInfo.newBuilder()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment