Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2577

Potential NPE when clearing a scalar property.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M5
    • Core
    • None

    Description

      Martin Hesse:
      I think there is a "bug" in the MemberExecutorServiceDefault, in the method setOrClearProperty the parameter final @NonNull ManagedObject newValueAdapter is called with a null argument from the PropertySetterOrClearFacetForDomainEventAbstract:
      return setOrClearProperty(EditingVariant.CLEAR,
      owningProperty, targetAdapter, /newValueAdapter/ null, interactionInitiatedBy);
      I don't think it needs the @NonNull annotation, as far as I can see the unwrapping can handle null

      Attachments

        Activity

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: