You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/10/21 19:12:34 UTC

[jira] [Updated] (PDFBOX-2443) About to return NULL from unhandled branch when constructing a PDJpeg

     [ https://issues.apache.org/jira/browse/PDFBOX-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-2443:
------------------------------------
    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.

  was:
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, 


> About to return NULL from unhandled branch when constructing a PDJpeg
> ---------------------------------------------------------------------
>
>                 Key: PDFBOX-2443
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2443
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.7, 1.8.8
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 1.8.8
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)