java.lang.NullPointerException

ZK-Tracker | henrichen | 5 years ago
  1. 0

    http://code.google.com/p/zkspreadsheet/issues/detail?id=209 Reported by chris_th...@hotmail.com, Nov 29, 2010 The current implementation of Utils.pasteSpecial(....) assumes that both sheets are in the same workbook. This means I can't open 2 spreadsheets/files side-by-side and copy-and-paste between them. I get NullPointerException because it is assuming that the workbook is the same for both source-sheet and dest-sheet. This would be a very nice enhancement to have, as our application allows for multiple spreadsheets open at a time. 1. Open 2 windows, each with a different xls file 2. Copy from one 3. Paste to the other, using the utils.pasteSpecial expect: copied content. Instead, I get a NPE. java.lang.NullPointerException at org.zkoss.zss.model.impl.BookHelper.getSheet(BookHelper.java:231) at org.zkoss.zss.model.impl.RangeImpl.copyRef(RangeImpl.java:925) at org.zkoss.zss.model.impl.RangeImpl.copy(RangeImpl.java:882) at org.zkoss.zss.model.impl.RangeImpl.paste0(RangeImpl.java:733) at org.zkoss.zss.model.impl.RangeImpl.pasteSpecial(RangeImpl.java:645) at org.zkoss.zss.ui.impl.Utils.pasteSpecial(Utils.java:161) at com.sl.surveyor.ui.spreadsheet.SpreadsheetPanel.onPaste(SpreadsheetPanel.java:194) at ...........(SpreadsheetPanel.java:110) 29-Nov-2010 09:45:07 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1253 SEVERE: >>java.lang.NullPointerException >> at org.zkoss.zss.model.impl.BookHelper.getSheet(BookHelper.java:231) >> at org.zkoss.zss.model.impl.RangeImpl.copyRef(RangeImpl.java:925) >> at org.zkoss.zss.model.impl.RangeImpl.copy(RangeImpl.java:882) >> at org.zkoss.zss.model.impl.RangeImpl.paste0(RangeImpl.java:733) >> at org.zkoss.zss.model.impl.RangeImpl.pasteSpecial(RangeImpl.java:645) >> at org.zkoss.zss.ui.impl.Utils.pasteSpecial(Utils.java:161)

    ZK-Tracker | 5 years ago | henrichen
    java.lang.NullPointerException
  2. 0

    http://code.google.com/p/zkspreadsheet/issues/detail?id=209 Reported by chris_th...@hotmail.com, Nov 29, 2010 The current implementation of Utils.pasteSpecial(....) assumes that both sheets are in the same workbook. This means I can't open 2 spreadsheets/files side-by-side and copy-and-paste between them. I get NullPointerException because it is assuming that the workbook is the same for both source-sheet and dest-sheet. This would be a very nice enhancement to have, as our application allows for multiple spreadsheets open at a time. 1. Open 2 windows, each with a different xls file 2. Copy from one 3. Paste to the other, using the utils.pasteSpecial expect: copied content. Instead, I get a NPE. java.lang.NullPointerException at org.zkoss.zss.model.impl.BookHelper.getSheet(BookHelper.java:231) at org.zkoss.zss.model.impl.RangeImpl.copyRef(RangeImpl.java:925) at org.zkoss.zss.model.impl.RangeImpl.copy(RangeImpl.java:882) at org.zkoss.zss.model.impl.RangeImpl.paste0(RangeImpl.java:733) at org.zkoss.zss.model.impl.RangeImpl.pasteSpecial(RangeImpl.java:645) at org.zkoss.zss.ui.impl.Utils.pasteSpecial(Utils.java:161) at com.sl.surveyor.ui.spreadsheet.SpreadsheetPanel.onPaste(SpreadsheetPanel.java:194) at ...........(SpreadsheetPanel.java:110) 29-Nov-2010 09:45:07 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1253 SEVERE: >>java.lang.NullPointerException >> at org.zkoss.zss.model.impl.BookHelper.getSheet(BookHelper.java:231) >> at org.zkoss.zss.model.impl.RangeImpl.copyRef(RangeImpl.java:925) >> at org.zkoss.zss.model.impl.RangeImpl.copy(RangeImpl.java:882) >> at org.zkoss.zss.model.impl.RangeImpl.paste0(RangeImpl.java:733) >> at org.zkoss.zss.model.impl.RangeImpl.pasteSpecial(RangeImpl.java:645) >> at org.zkoss.zss.ui.impl.Utils.pasteSpecial(Utils.java:161)

    ZK-Tracker | 5 years ago | henrichen
    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.zss.model.impl.BookHelper.getSheet()
    2. org.zkoss.zss
      Utils.pasteSpecial
      1. org.zkoss.zss.model.impl.BookHelper.getSheet(BookHelper.java:231)
      2. org.zkoss.zss.model.impl.RangeImpl.copyRef(RangeImpl.java:925)
      3. org.zkoss.zss.model.impl.RangeImpl.copy(RangeImpl.java:882)
      4. org.zkoss.zss.model.impl.RangeImpl.paste0(RangeImpl.java:733)
      5. org.zkoss.zss.model.impl.RangeImpl.pasteSpecial(RangeImpl.java:645)
      6. org.zkoss.zss.ui.impl.Utils.pasteSpecial(Utils.java:161)
      6 frames