Skip to content

Fixed: Copying a deserialized GenericValue fails with "observable cannot be null" (OFBIZ-13775) - #2508

Merged
mridulpathak merged 1 commit into
apache:release24.09from
mridulpathak:OFBIZ-13775-release24.09
Oct 30, 2026
Merged

mridulpathak merged 1 commit into
apache:release24.09from
mridulpathak:OFBIZ-13775-release24.09

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor

Backported from trunk (#2507).

GenericEntity keeps its Observable in a transient field, so it is null once the entity has been deserialized. The copy constructor path used by GenericValue.create and refreshFromValue built the new Observable from that field directly and failed with "observable cannot be null" when the source value came from a restored session. Both now read it through the existing lazy getObservable().
@mridulpathak
mridulpathak merged commit 7b29658 into apache:release24.09 Oct 30, 2026
6 checks passed
@mridulpathak
mridulpathak deleted the OFBIZ-13775-release24.09 branch October 30, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant