java.lang.NullPointerException

ZK-Tracker | hawk | 4 years ago
  1. 0

    h3. Problem Description if a cell's data format is "accounting" and use other nation dollar symbol (not $NT) e.g. $ English(Australia) or Japanese(Japan), it causes null pointer exception when displaying it, then crashed. {code} >>java.lang.NullPointerException >> at org.zkoss.poi.ss.format.CellFormat.getApplicableFormatPart(CellFormat.java:435) >> at org.zkoss.poi.ss.format.CellFormat.apply(CellFormat.java:309) >> at org.zkoss.zss.model.sys.impl.BookHelper.getFormatText(BookHelper.java:1027) >> at org.zkoss.zss.ui.impl.XUtils.getFormatText(XUtils.java:335) >> at org.zkoss.zss.ui.impl.CellFormatHelper.getHtmlStyle(CellFormatHelper.java:89) >> at org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.getCellAttr(Spreadsheet.java:3066) >> at org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.getRangeAttrs(Spreadsheet.java:2912) >> at org.zkoss.zss.ui.Spreadsheet.updateSheetAttributes(Spreadsheet.java:852) >> at org.zkoss.zss.ui.Spreadsheet.setSelectedSheetDirectly(Spreadsheet.java:791) >> at org.zkoss.zss.ui.Spreadsheet.access$42(Spreadsheet.java:769) >> at org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.setSelectedSheetDirectly(Spreadsheet.java:3520) >> at org.zkoss.zss.ui.au.in.SelectSheetCommand.process(SelectSheetCommand.java:79) >> at org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4712) >> 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) {code} h3. Reproducing Steps you can use "cell-data" sheet of TestFile2007.xlsx (in attachment) to reproduce it.

    ZK-Tracker | 4 years ago | hawk
    java.lang.NullPointerException
  2. 0

    h3. Problem Description if a cell's data format is "accounting" and use other nation dollar symbol (not $NT) e.g. $ English(Australia) or Japanese(Japan), it causes null pointer exception when displaying it, then crashed. {code} >>java.lang.NullPointerException >> at org.zkoss.poi.ss.format.CellFormat.getApplicableFormatPart(CellFormat.java:435) >> at org.zkoss.poi.ss.format.CellFormat.apply(CellFormat.java:309) >> at org.zkoss.zss.model.sys.impl.BookHelper.getFormatText(BookHelper.java:1027) >> at org.zkoss.zss.ui.impl.XUtils.getFormatText(XUtils.java:335) >> at org.zkoss.zss.ui.impl.CellFormatHelper.getHtmlStyle(CellFormatHelper.java:89) >> at org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.getCellAttr(Spreadsheet.java:3066) >> at org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.getRangeAttrs(Spreadsheet.java:2912) >> at org.zkoss.zss.ui.Spreadsheet.updateSheetAttributes(Spreadsheet.java:852) >> at org.zkoss.zss.ui.Spreadsheet.setSelectedSheetDirectly(Spreadsheet.java:791) >> at org.zkoss.zss.ui.Spreadsheet.access$42(Spreadsheet.java:769) >> at org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.setSelectedSheetDirectly(Spreadsheet.java:3520) >> at org.zkoss.zss.ui.au.in.SelectSheetCommand.process(SelectSheetCommand.java:79) >> at org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4712) >> 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) {code} h3. Reproducing Steps you can use "cell-data" sheet of TestFile2007.xlsx (in attachment) to reproduce it.

    ZK-Tracker | 4 years ago | hawk
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.zkoss.poi.ss.format.CellFormat.getApplicableFormatPart()
    2. org.zkoss.poi
      CellFormat.apply
      1. org.zkoss.poi.ss.format.CellFormat.getApplicableFormatPart(CellFormat.java:435)
      2. org.zkoss.poi.ss.format.CellFormat.apply(CellFormat.java:309)
      2 frames
    3. org.zkoss.zss
      Spreadsheet.service
      1. org.zkoss.zss.model.sys.impl.BookHelper.getFormatText(BookHelper.java:1027)
      2. org.zkoss.zss.ui.impl.XUtils.getFormatText(XUtils.java:335)
      3. org.zkoss.zss.ui.impl.CellFormatHelper.getHtmlStyle(CellFormatHelper.java:89)
      4. org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.getCellAttr(Spreadsheet.java:3066)
      5. org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.getRangeAttrs(Spreadsheet.java:2912)
      6. org.zkoss.zss.ui.Spreadsheet.updateSheetAttributes(Spreadsheet.java:852)
      7. org.zkoss.zss.ui.Spreadsheet.setSelectedSheetDirectly(Spreadsheet.java:791)
      8. org.zkoss.zss.ui.Spreadsheet.access$42(Spreadsheet.java:769)
      9. org.zkoss.zss.ui.Spreadsheet$ExtraCtrl.setSelectedSheetDirectly(Spreadsheet.java:3520)
      10. org.zkoss.zss.ui.au.in.SelectSheetCommand.process(SelectSheetCommand.java:79)
      11. org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4712)
      11 frames
    4. ZK Kernel
      DHtmlUpdateServlet.doPost
      1. org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:701)
      2. org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1201)
      3. org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
      4. org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)
      5. org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491)
      5 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame