Skip to content

Preserve test failures when stack traces cannot be fully rendered - #1335

Merged
baev merged 1 commit into
mainfrom
fix-1035
Jul 22, 2026
Merged

baev merged 1 commit into
mainfrom
fix-1035

Conversation

@baev

@baev baev commented Jul 22, 2026

Copy link
Copy Markdown
Member

Context

Allure now keeps the original test failure and available stack trace when Java cannot completely render a nested exception. This prevents malformed or mocked exceptions from causing an additional NullPointerException in Allure and hiding the test’s real status details.

When rendering is incomplete, the report preserves the partial stack trace and clearly identifies the rendering failure so users can still diagnose the original assertion error.

fixes #1035

Checklist

@baev baev added the pr:bug Something isn't working label Jul 22, 2026
@github-actions

Copy link
Copy Markdown

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Java – Pull request #1335 23m 6s Passed tests 2009   Skipped tests 2 2 0 0 View
Allure Java GitHub actions run (2026-07-22T11:15:29.626Z) 23m 6s Passed tests 2009   Skipped tests 2 2 0 0 View

@baev
baev merged commit f45f5b3 into main Jul 22, 2026
10 of 11 checks passed
@baev
baev deleted the fix-1035 branch July 22, 2026 11:22
@maht

maht commented Jul 28, 2026

Copy link
Copy Markdown

Thanks @baev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞: NullPointerException while obtaining statusDetails

3 participants