Uploaded image for project: 'Magnolia Shop (closed)'
  1. Magnolia Shop (closed)
  2. MSHOP-64

Product teaser broken in 4.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.1.2
    • 1.1.1
    • None

    Description

      The product teaser does not work in Mag 4.5 anymore: The model class throws a NPE when the renderer tries to access the teaser target:

      Caused by: java.lang.NullPointerException
      	at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getType(DelegatePropertyWrapper.java:228)
      	at info.magnolia.jcr.util.ContentMap.getNodeProperty(ContentMap.java:199)
      	at info.magnolia.jcr.util.ContentMap.get(ContentMap.java:174)
      	at info.magnolia.freemarker.models.ContentMapModel.getAsString(ContentMapModel.java:92)
      	at freemarker.core.Expression.isEmpty(Expression.java:161)
      	at freemarker.core.BuiltIn$has_contentBI._getAsTemplateModel(BuiltIn.java:730)
      

      I think the wrapping of the JCR node and then converting to a ContentMap somehow does not work. Property.getType() returns null when the property "@name" is being fetched from the target node.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              will Will Scheidegger
              will Will Scheidegger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD