Skip to content

Conversation

@lynxplay
Copy link
Contributor

@lynxplay lynxplay commented Feb 26, 2025

Requesting the record components from a struct class has a fallback to
an empty list over null for objects that extend j.l.Record but do not
have a record attribute.

This fallback however assumes that the type has a superclass, which is
not the case for j.l.Object, causing a NPE.

Requesting the record components from a struct class has a fallback to
an empty list over null for objects that extend j.l.Record but do not
have a record attribute.

This fallback however assumes that the type has a superclass, which is
not the case of j.l.Object, causing a NPE.
@lynxplay lynxplay force-pushed the bugfix/record-components-on-object-switch branch from 83476fc to cd02c9a Compare February 26, 2025 16:39
@lynxplay
Copy link
Contributor Author

Fixed commit type ™️

@zml2008 zml2008 mentioned this pull request Feb 26, 2025
@zml2008 zml2008 linked an issue Feb 26, 2025 that may be closed by this pull request
@jaskarth jaskarth changed the base branch from master to develop/1.11.1 February 26, 2025 17:41
Copy link
Member

@jaskarth jaskarth left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@jaskarth jaskarth merged commit 0d65b85 into Vineflower:develop/1.11.1 Feb 26, 2025
4 checks passed
@lynxplay lynxplay deleted the bugfix/record-components-on-object-switch branch February 26, 2025 20:13
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.

Decompilation failed

3 participants