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

NullPointerException when adding a comment through the page comments portlet

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.0.2 RC
    • Fix Version/s: 6.0.3 GA
    • Component/s: Page Comments widget
    • Labels:
      None

      Description

      This is the stack trace:
      17:27:58,430 ERROR [IncludeTag:229] Current URL /web/guest/message-boards?p_p_id=107&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1 generates exception: java.lang.NullPointerException
      17:27:58,436 ERROR [IncludeTag:156] java.lang.NullPointerException
      at org.apache.jsp.html.taglib.ui.ratings.page_jsp._jspService(page_jsp.java:1122)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      And this is what is in that line of the compiled JSP:
      _jspx_th_c_005fwhen_005f4.setTest( (ratingsStats.getAverageScore() * ratingsStats.getTotalEntries() == 0) );

      So it seems that ratingsStats is null in this case

        Attachments

          Activity

            People

            Assignee:
            caorongjin Alexander Chow (Inactive)
            Reporter:
            jorge.ferrer Jorge Ferrer (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 34 weeks, 4 days ago

                Packages

                Version Package
                6.0.3 GA