fix null pointer on draft refresh (#7863)

This commit is contained in:
jpvorenk
2025-06-17 18:36:29 -07:00
committed by GitHub
parent 87821fe287
commit fa27fbab46

View File

@@ -1997,7 +1997,9 @@ public class FDeckEditor extends TabPageScreen<FDeckEditor> {
@Override
public void refresh() {
BoosterDraft draft = parentScreen.getDraft();
if (draft == null) { return; }
if (draft == null || !draft.hasNextChoice()) {
return;
}
CardPool pool = draft.nextChoice();
int packNumber = draft.getCurrentBoosterIndex() + 1;