Skip to content

Fix: Subclasses of GCS Actor Sheet fail to render if no quick notes element is present#2738

Merged
mjeffw merged 1 commit into
develop/v13-onlyfrom
bugfix/2692
May 29, 2026
Merged

Fix: Subclasses of GCS Actor Sheet fail to render if no quick notes element is present#2738
mjeffw merged 1 commit into
develop/v13-onlyfrom
bugfix/2692

Conversation

@rinickolous
Copy link
Copy Markdown
Collaborator

Fixes #2692

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a null dereference in GurpsActorGcsSheet._onRender when subclassed sheets lack a .quick-notes element by guarding the push with a null check.

Changes:

  • Replace non-null assertion with nullable lookup and conditional push for .quick-notes.

Base automatically changed from bugfix/2734 to develop/v13-only May 29, 2026 20:04
@mjeffw mjeffw merged commit a70787b into develop/v13-only May 29, 2026
4 checks passed
@mjeffw mjeffw deleted the bugfix/2692 branch May 29, 2026 20:12
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.

V1.0.0 onRender fails if a sheet inheriting from GurpsActorGcsSheet has no quick notes

3 participants