Skip to content

Fix ConditionRenderer crash on null last_transition#175

Open
jrauh01 wants to merge 1 commit into
mainfrom
fix/condition-extended-info
Open

Fix ConditionRenderer crash on null last_transition#175
jrauh01 wants to merge 1 commit into
mainfrom
fix/condition-extended-info

Conversation

@jrauh01
Copy link
Copy Markdown
Collaborator

@jrauh01 jrauh01 commented May 13, 2026

last_transition is nullable on condition items, but assembleExtendedInfo() called getTimestamp() on it unconditionally. This caused a fatal TypeError and a blank detail page for any resource whose condition had never transitioned.

The fix adds a null check before constructing the TimeAgo widget.

fix #174

`last_transition` is nullable on a condition item, but `assembleExtendedInfo()`
passed it directly to `TimeAgo` without a null check. This caused a fatal error
whenever a condition had no recorded transition time.

Co-authored-by: maurito1990 <maurito1990@gmail.com>
@jrauh01 jrauh01 self-assigned this May 13, 2026
@cla-bot cla-bot Bot added the cla/signed CLA is signed by all contributors of a PR label May 13, 2026
@jrauh01 jrauh01 requested a review from lippserd May 13, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: Call to a member function getTimestamp() on null in ConditionRenderer::assembleExtendedInfo()

1 participant