Skip to content

Commit 2a11e4d

Browse files
committed
fix: checking null decrease question attempt
1 parent 6f53b0e commit 2a11e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qasdk/src/main/java/co/astrnt/qasdk/AstrntSDK.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ public void decreaseQuestionAttempt() {
797797
questionInfo = getQuestionInfo();
798798
}
799799

800-
if (!realm.isInTransaction()) {
800+
if (!realm.isInTransaction() && questionInfo != null) {
801801
realm.beginTransaction();
802802

803803
questionInfo.decreaseAttempt();

0 commit comments

Comments
 (0)