Uploaded image for project: 'Hibernate ORM'
  1. HHH-12166

AbstractCompositionAttribute#getAttributes throws NPE for nested CompositeCustomType

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Worked in:
    • Last commented by a user?:
      true
    • Sprint:

      Description

      When using CompositeUserType(s) in attribute mappings which get wrapped by CompositeCustomType, NPE is thrown when selecting an entity using such type. This last worked in 3.3.2 (maybe more), but in 4.3 series it was already broken. There are 2 places in AbstractCompositionAttribute#getAttributes that guard against NPE, but the 3rd place has been missed (line 176). This gets triggered when the type is CompositeCustomType which returns null for getPropertyNullability(). I propose a patch that does the same for the missed place too... NPE_in_AbstractCompositeType_getAttributes.patch

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: