Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-68687

NPE occurs when add calendar resource from "Other Resource"

    Details

      Description

      There has a new defect when we include LPS-67557 and LPS-67894.

      Reproduce steps:
      1) Base on a clean database.
      2) Enable local live in Liferay (Select Calendar) and create a new user who belongs to Liferay Site and have Site Administrator role.
      3) Login with that user.
      4) Added a page and calendar portlet into it.
      5) Added 2 resources Industry and Training.
      6) Added these two resources as Calendar in Calendar Portlet (Other Calendars section).
      7) Refresh UI, repeat step 6.

      Will get NPE exception:

      ava.lang.NullPointerException
              at com.liferay.calendar.util.CalendarUtil.toCalendarJSONObject(CalendarUtil.java:328)
              at com.liferay.calendar.portlet.CalendarPortlet.serveCalendarResources(CalendarPortlet.java:1101)
              at com.liferay.calendar.portlet.CalendarPortlet.serveResource(CalendarPortlet.java:239)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:122)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:82)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:116)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      

        Attachments

        1. calendar_table_add_live_data.png
          calendar_table_add_live_data.png
          37 kB
        2. Fixed.PNG
          Fixed.PNG
          6 kB
        3. Fixed70.PNG
          Fixed70.PNG
          11 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 43 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP8
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master