Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2443

About to return NULL from unhandled branch when constructing a PDJpeg

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 1.8.8
    • Fix Version/s: 1.8.8
    • Component/s: PDModel
    • Labels:
      None

      Description

      The INFO "About to return NULL from unhandled branch" appears when creating a PDJpeg from a stream. Although the message is an INFO and not a WARNING or an ERROR, it scares users.

      The message happens because getRGBImage() calls getColorSpace() although the colorspace isn't known yet, it is determined after the call to getRGBImage(), which loads the image.

      The image objects were completely redesigned in 2.0, so it makes no sense to waste time for a real solution to this. I am setting the message to DEBUG instead, and make it less scary.

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: