Details

      Description

      portletRequest and portletResponse may be null for certain portlets like Language selection.

      Steps to reproduce:

      1. Use Liferay 7.0
      2. Create a Theme that uses a language selector in portal_normal.ftl (or use the attached one):

      <@liferay_ui["language"]/>
      

      3. Deploy the theme and set a page to use it.
      Actual Result: The language selector is missing and a NullPointerException happens in the logs
      Expected Result: Language selector still appears

        Attachments

        1. 70.png
          70.png
          107 kB
        2. fail.png
          fail.png
          172 kB
        3. Fix_master.png
          Fix_master.png
          18 kB
        4. joyce-theme.war
          2.59 MB
        5. joyce-theme-70.war
          2.22 MB
        6. master.png
          master.png
          16 kB
        7. new-theme.war
          2.76 MB
        8. sample-styled-minimal-theme-2017-09-05.war
          2.02 MB

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            istvan.dezsi Istvan Dezsi
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 7 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP60
                7.0.0 DXP SP9
                7.0.X
                7.1.X
                Master