Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-693

A note without any text (empty string) causes NPE during import

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.0
    • 5.12.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      Import attached emptyNote.xlsx in Keikai

      Current Result

      NPE

       

      java.lang.NullPointerException: null
      	at io.keikai.model.util.RichTextHelper.escapeText(RichTextHelper.java:216)
      	at io.keikai.ui.SpreadsheetCtrlImpl.getCellAttr(SpreadsheetCtrlImpl.java:622)
      	at io.keikai.ui.SpreadsheetCtrlImpl.getRangeAttrs(SpreadsheetCtrlImpl.java:390)
      	at io.keikai.ui.Spreadsheet.createActiveRange(Spreadsheet.java:2040)
      	at io.keikai.ui.Spreadsheet.renderProperties(Spreadsheet.java:1980)
      	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:2181)
      	at org.zkoss.zk.ui.impl.UiVisualizer.redraw(UiVisualizer.java:1003)
       

       

       

      Expected Result

      Doesn't cause exception

      Debug Information

      JSON content of text node is null if text is empty

      Workaround

      don't put empty notes in document

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: