Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-46

NullPointerException(Sanselan.java:323)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-alpha1
    • None
    • None

    Description

      Static code analysis reveals that IccProfileParser.getICCProfileInfo can return a null value.

      Sanselan.getICCProfile(line 323) uses info, which can be null, without checking for the value.

      There is a test case in Shindig, JPEGOptimizerTest.testBadICC4, where the ICC count is too large. On some JVMs (like Sun) you get an OutOfMemory error, on other like IBM null is returned from getICCProfileInfo, resulting in a NPE.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jon.weygandt Jon Weygandt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: