blaze-persistence icon indicating copy to clipboard operation
blaze-persistence copied to clipboard

[#1722] avoid NPE in TupleTransformatorFactory

Open david-kubecka opened this issue 1 year ago • 1 comments

For some unknown reason a classMappingIndex sometimes points to a non-present field in the tuple (filtered via fetches mechanism). The correct fix should be somewhere else but that this is probably good enough - just don't perfomr any tuple transformation for non-present fields.

Also, fix a small bug in hasSubFetches. The wrongly implemented equality check lead to overfetching.

Description

Related Issue

Motivation and Context

david-kubecka avatar Apr 11 '23 09:04 david-kubecka

Can you please add a test case that reproducers this issue? I'd like to make sure we don't reintroduce such a regression again.

beikov avatar Jun 15 '23 16:06 beikov