Skip to content

Commit 1bcb316

Browse files
adinauerclaude
andcommitted
fix(sentry): Mark skipped values consumed after success
Move skipValue consumption tracking after the underlying Gson skip succeeds. This keeps valueConsumed aligned with the primitive reader methods and avoids marking a value as consumed before JsonReader has actually advanced past it. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 886612d commit 1bcb316

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry/src/main/java/io/sentry/JsonObjectReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ public void setLenient(boolean lenient) {
349349

350350
@Override
351351
public void skipValue() throws IOException {
352-
markValueConsumed();
353352
jsonReader.skipValue();
353+
markValueConsumed();
354354
}
355355

356356
private boolean recoverAfterValueFailure(

0 commit comments

Comments
 (0)