java.lang.NullPointerException

ICEsoft JIRA Issue Tracker | Giorgio Fiderio | 5 months ago
  1. 0

    When rendering the provided PDF file the following exceptions are thrown and the content of the PDF is rendered blank: ICEsoft ICEpdf Viewer x.x.x x Copyright ICEsoft Technologies, Inc. lug 15, 2016 10:03:01 AM org.icepdf.core.pobjects.Catalog <clinit> INFORMAZIONI: ICEsoft ICEpdf Core x.x.x x lug 15, 2016 10:03:01 AM org.icepdf.core.pobjects.Resources getFont AVVERTENZA: Error initializing font, falling back to font substitution. lug 15, 2016 10:03:01 AM org.icepdf.core.util.content.AbstractContentParser consume_Tf AVVERTENZA: Warning could not find font by named resource C2_0 lug 15, 2016 10:03:01 AM org.icepdf.core.pobjects.Resources getFont AVVERTENZA: Error initializing font, falling back to font substitution. lug 15, 2016 10:03:01 AM org.icepdf.core.util.content.AbstractContentParser consume_Tf AVVERTENZA: Warning could not find font by named resource C2_0 lug 15, 2016 10:03:01 AM org.icepdf.core.util.content.NContentParser parse AVVERTENZA: Error parsing content stream. java.lang.NullPointerException at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:833) at org.icepdf.core.util.content.NContentParser.parse(NContentParser.java:174) at org.icepdf.core.pobjects.Page.init(Page.java:404) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1180) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) The problem is that the convertToString method of CMap.java class receives a CharSequence s of length 1. P.S. Incidentally I noted that the same method contains a bug: if (s == null && s.length() % 2 != 0) I think should instead be if (s == null || s.length() % 2 != 0). But I don't think that is the problem.

    ICEsoft JIRA Issue Tracker | 5 months ago | Giorgio Fiderio
    java.lang.NullPointerException
  2. 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.icepdf.core.util.content.AbstractContentParser.consume_Tf()
    2. org.icepdf.core
      Page.init
      1. org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:833)
      2. org.icepdf.core.util.content.NContentParser.parse(NContentParser.java:174)
      3. org.icepdf.core.pobjects.Page.init(Page.java:404)
      3 frames
    3. org.icepdf.ri
      PageViewComponentImpl$PageInitializer.run
      1. org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1180)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames