Continuum
  1. Continuum
  2. CONTINUUM-2144

NullPointerException when edit a project group with empty or only whitespaces values in Project Group Name

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.3 (Beta)
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      1

      Description

      If you edit a project group with empty Project Group Name you get this error:

      2009-03-21 17:39:58.270::WARN:  /saveProjectGroup.action: java.io.IOException: Stream closed
      2009-03-21 17:39:58.270::WARN:  EXCEPTION 
      org.apache.jasper.JasperException: java.lang.NullPointerException
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:402)
      	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.servlet.Dispatcher.forward(Dispatcher.java:285)
      	at org.mortbay.jetty.servlet.Dispatcher.error(Dispatcher.java:135)
      	at org.mortbay.jetty.servlet.ErrorPageErrorHandler.handle(ErrorPageErrorHandler.java:121)
      	at org.mortbay.jetty.Response.sendError(Response.java:274)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:433)
      	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.content(HttpConnection.java:843)
      	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
      	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)
      Caused by: java.lang.NullPointerException
      	at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:50)
      	at org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp._jspx_meth_s_i18n_0(org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp:103)
      	at org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp:80)
      	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)
      	... 29 more
      

      Note: I am working in this bug.

      1. CONTINUUM-2144.patch
        9 kB
        Jose Morales Martinez

        Activity

        Hide
        Jose Morales Martinez added a comment -

        In this patch when a validation error occurs initializing the list of repositories and projects, so as to avoid the NullPointerException.

        Show
        Jose Morales Martinez added a comment - In this patch when a validation error occurs initializing the list of repositories and projects, so as to avoid the NullPointerException.
        Hide
        Maria Catherine Tan added a comment -

        Fixed in revision 757384. Thanks!

        Show
        Maria Catherine Tan added a comment - Fixed in revision 757384. Thanks!

          People

          • Assignee:
            Maria Catherine Tan
            Reporter:
            Jose Morales Martinez
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: