Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-113

delete sheet's chart cause NPE, xls format only

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0 RC
    • Component/s: None
    • Labels:
      None

      Description

      1. use xls format file
      2. click on a chart
      3. press "DEL" key, throw NullPointerException

        Activity

        Hide
        samchuang samchuang added a comment -

        fixed NullPinterException 2012/4/12

        Currently, xls format not implement delete chart

        Show
        samchuang samchuang added a comment - fixed NullPinterException 2012/4/12 Currently, xls format not implement delete chart
        Hide
        paowang paowang added a comment -

        After upgraded to 3.0.0, delete a chart cause NPE again in xls format file.

        And xls format still not implement deleting a chart.

        stack trace:

        Jul 4, 2013 6:16:02 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1359
        SEVERE: >>java.lang.NullPointerException
        >>	at org.zkoss.zss.api.model.impl.ChartImpl.getId(ChartImpl.java:66)
        >>	at org.zkoss.zss.ui.au.in.CtrlKeyCommand.handleWidgetKeyDown(CtrlKeyCommand.java:97)
        >>	at org.zkoss.zss.ui.au.in.CtrlKeyCommand.process(CtrlKeyCommand.java:60)
        >>	at org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4790)
        >>	at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:701)
        >>	at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1201)
        >>	at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
        >>	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)
        >>	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491)
        >>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        >>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        >>	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
        >>	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
        >>	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        >>	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        >>	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
        >>	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
        >>	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        >>	at org.mortbay.jetty.Server.handle(Server.java:326)
        >>	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
        >>	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
        >>	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
        >>	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
        >>	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        >>	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
        >>	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
        
        Show
        paowang paowang added a comment - After upgraded to 3.0.0, delete a chart cause NPE again in xls format file. And xls format still not implement deleting a chart. stack trace: Jul 4, 2013 6:16:02 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1359 SEVERE: >>java.lang.NullPointerException >> at org.zkoss.zss.api.model.impl.ChartImpl.getId(ChartImpl.java:66) >> at org.zkoss.zss.ui.au.in.CtrlKeyCommand.handleWidgetKeyDown(CtrlKeyCommand.java:97) >> at org.zkoss.zss.ui.au.in.CtrlKeyCommand.process(CtrlKeyCommand.java:60) >> at org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4790) >> at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:701) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1201) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) >> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) >> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) >> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) >> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) >> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >> at org.mortbay.jetty.Server.handle(Server.java:326) >> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) >> at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) >> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) >> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
        Hide
        paowang paowang added a comment -

        fixed, since 2013-07-15.

        Show
        paowang paowang added a comment - fixed, since 2013-07-15.

          People

          • Assignee:
            paowang paowang
            Reporter:
            samchuang samchuang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: