Ticket #2372 (closed Bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Empty/non-set FCK:editor value causes NullPointerException

Reported by: mosipov Owned by: mosipov
Priority: High Milestone: FCKeditor.Java 2.4.1
Component: Server : Java Version: FCKeditor.Java 2.4
Keywords: Cc:

Description (last modified by mosipov) (diff)

A code like this:

<FCK:editor instanceName="EditorDefault">
  <jsp:attribute name="value"></jsp:attribute>
</FCK:editor>

or this

<FCK:editor instanceName="EditorDefault"  value=""/>

or this

<FCK:editor instanceName="EditorDefault"  />

Result in value being null and causing an NPE:

java.lang.NullPointerException
	at net.fckeditor.FCKeditor.createHtml(FCKeditor.java:238)
	at net.fckeditor.FCKeditor.toString(FCKeditor.java:223)
	at java.lang.String.valueOf(Unknown Source)
	at org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:584)
	at org.apache.jasper.runtime.JspWriterImpl.println(JspWriterImpl.java:689)
	at net.fckeditor.tags.EditorTag.doEndTag(EditorTag.java:138)
	at org.apache.jsp.jsp.sample02_jsp._jspx_meth_FCK_editor_0(org.apache.jsp.jsp.sample02_jsp:124)
	at org.apache.jsp.jsp.sample02_jsp._jspService(org.apache.jsp.jsp.sample02_jsp:93)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

Change History

comment:1 Changed 6 years ago by mosipov

  • Status changed from new to assigned
  • Description modified (diff)

Bug verified in trunk

comment:2 Changed 6 years ago by mosipov

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Description modified (diff)
  • Summary changed from Empty FCK:editor value causes NullPointerException to Empty/non-set FCK:editor value causes NullPointerException

Fixed in [2227]

comment:3 Changed 6 years ago by mosipov

  • Description modified (diff)
  • Milestone changed from FCKeditor.Java 2.5 to FCKeditor.Java 2.4.1

comment:4 Changed 6 years ago by mosipov

  • Status changed from closed to reopened
  • Resolution fixed deleted
  • Description modified (diff)

Merge patch to branch 2.4.x

comment:5 Changed 6 years ago by mosipov

  • Status changed from reopened to closed
  • Resolution set to fixed

Branch 2.4.x merged with trunk in [2538]

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy