-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.1.0 CE RC1
-
Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
-
Component/s: Web Content > Web Content Administration
-
Labels:None
-
Environment:Tomcat 6.0.33 + MySQL 5.1.58. 6.0.x Revision: 94027.
Tomcat 7.0.23 + MySQL 5. 6.1.x Revision: 94954.
-
Epic/Theme:
-
Story Points:3
-
Fix Priority:3
Steps to reproduce:
- Go to Control Panel > Web Content, click Add to add a Web Content
- Click Actions > Edit of the Web Content added above.
- Click View History button, then select the only version left, then click Delete.
Result:
Although the Web Content is delete and a success message is shown, but a NullPointerException is printed in the console:
06:01:44,694 ERROR [IncludeTag:426] Current URL /web/guest/web-content?p_p_auth=X5rQslyR&p_p_id=15&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_15_groupId=10180&_15_stru
ts_action=%2Fjournal%2Fview_article_history&_15_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fweb-content%3Fp_p_auth%3DX5rQslyR%26p_p_id%3D15%26p_p_lifecycle%3D0%26p_
p_state%3Dmaximized%26p_p_mode%3Dview%26_15_groupId%3D10180%26_15_redirect%3Dhttp%253A%252F%252Flocalhost%253A8080%252Fweb%252Fguest%252Fweb-content%253Fp_p_id%253D56_INSTANCE
_lIDEX8F5bhVR%2526p_p_lifecycle%253D0%2526p_p_state%253Dnormal%2526p_p_mode%253Dview%2526p_p_col_id%253Dcolumn-2%2526p_p_col_count%253D1%26_15_struts_action%3D%252Fjournal%252
Fedit_article%26_15_articleId%3D10433%26_15_version%3D1.1&_15_articleId=10433 generates exception: null
06:01:44,702 ERROR [IncludeTag:154] java.lang.NullPointerException
at org.apache.jsp.html.portlet.journal.view_005farticle_005fhistory_jsp._jspService(view_005farticle_005fhistory_jsp.java:620)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.liferay.portal.kernel.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:45)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:323)
at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:418)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:92)
at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3715)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)