Skip to content

Release/3.5.2 - #22

Merged
marsicdev merged 2 commits into
main-v3from
release/3.5.2
Sep 1, 2026
Merged

marsicdev merged 2 commits into
main-v3from
release/3.5.2

Conversation

@marsicdev

@marsicdev marsicdev commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes production crash IndexOutOfBoundsException: toIndex = 6 in PDF creation when printing invoices whose journal header block has fewer than 6 lines (seen with proforma receipts).
  • Header parsing now uses drop/take instead of hard subList indices, so any header length renders instead of crashing.
  • Adds temporary [DEBUG-pdf] diagnostics: stats to Logcat on every print; on malformed journals only, a Crashlytics non-fatal plus breadcrumb with the first 120 chars, to confirm which malformed shape reaches the parser. Tagged for easy removal.
  • Bumps version to 3.5.2 and updates CHANGELOG.

Replaces #21 (closed by branch rename to match release-branch convention).

Testing

  • Compile verified (compileDebugKotlin, printVersionInformation prints 3.5.2).
  • Runtime behavior on device unverified; crash repro was confirmed with the exact exception via a since-removed local check.

Replace hard subList indices in CreatePdf with drop/take so journal
headers with fewer than 6 lines (e.g. proforma receipts) no longer
throw IndexOutOfBoundsException on print. Add temporary [DEBUG-pdf]
logging to Logcat and Crashlytics to identify the malformed journal
shape. Bump version to 3.5.2.

Claude-Session: https://claude.ai/code/session_01MqPHhmoisS6SCg3E6umn2L
Send the PDF journal diagnostics to Crashlytics as a non-fatal only
when the journal is malformed, include receipt content in the log
solely on that path, and remove CLAUDE.md from version control.

Claude-Session: https://claude.ai/code/session_01MqPHhmoisS6SCg3E6umn2L
@marsicdev
marsicdev merged commit 4f9e946 into main-v3 Sep 1, 2026
2 checks passed
@marsicdev
marsicdev deleted the release/3.5.2 branch September 1, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant