Opened 9 years ago

Closed 9 years ago

#2372 closed Bug (fixed)

Empty/non-set FCK:editor value causes NullPointerException

Reported by: mosipov Owned by: mosipov
Priority: Must have (possibly next milestone) Milestone: FCKeditor.Java 2.4.1
Component: Server : Java Version: FCKeditor.Java 2.4
Keywords: Cc:

Description (last modified by mosipov)

A code like this:

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

or this

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

or this

<FCK:editor instanceName="EditorDefault"  />

Result in value being null and causing an NPE:

	at net.fckeditor.FCKeditor.createHtml(
	at net.fckeditor.FCKeditor.toString(
	at java.lang.String.valueOf(Unknown Source)
	at org.apache.jasper.runtime.JspWriterImpl.print(
	at org.apache.jasper.runtime.JspWriterImpl.println(
	at net.fckeditor.tags.EditorTag.doEndTag(
	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(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.jasper.servlet.JspServletWrapper.service(
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(
	at org.apache.jasper.servlet.JspServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.mortbay.jetty.servlet.ServletHolder.handle(
	at org.mortbay.jetty.servlet.ServletHandler.handle(
	at org.mortbay.jetty.servlet.SessionHandler.handle(
	at org.mortbay.jetty.handler.ContextHandler.handle(
	at org.mortbay.jetty.webapp.WebAppContext.handle(
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
	at org.mortbay.jetty.handler.HandlerCollection.handle(
	at org.mortbay.jetty.handler.HandlerWrapper.handle(
	at org.mortbay.jetty.Server.handle(
	at org.mortbay.jetty.HttpConnection.handleRequest(
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
	at org.mortbay.jetty.HttpParser.parseNext(
	at org.mortbay.jetty.HttpParser.parseAvailable(
	at org.mortbay.jetty.HttpConnection.handle(
	at org.mortbay.thread.QueuedThreadPool$

Change History (5)

comment:1 Changed 9 years ago by mosipov

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

Bug verified in trunk

comment:2 Changed 9 years ago by mosipov

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

Fixed in [2227]

comment:3 Changed 9 years ago by mosipov

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

comment:4 Changed 9 years ago by mosipov

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

Merge patch to branch 2.4.x

comment:5 Changed 9 years ago by mosipov

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

Branch 2.4.x merged with trunk in [2538]

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