xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43120] New: - TIFFImage constructor failed with error "java.lang.NullPointerException" on image with CCITT 3 or 4 compression type
Date Tue, 14 Aug 2007 13:32:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43120>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43120

           Summary: TIFFImage constructor failed with error
                    "java.lang.NullPointerException" on image with CCITT 3
                    or 4 compression type
           Product: XMLGraphicsCommons
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Image codecs
        AssignedTo: general@xmlgraphics.apache.org
        ReportedBy: sorlov@mdi.ru


330:            int photometricType =
(int)dir.getFieldAsLong(TIFFImageDecoder.TIFF_PHOTOMETRIC_INTERPRETATION);

Image has no field with tag "TIFFImageDecoder.TIFF_PHOTOMETRIC_INTERPRETATION".

I use next workaround:

            int photometricType;

            TIFFField photometricTypeField =
dir.getField(TIFFImageDecoder.TIFF_PHOTOMETRIC_INTERPRETATION);

            // Get the photometric interpretation.
            if (photometricTypeField == null)
              photometricType = 0; // White is zero
            else
              photometricType = photometricTypeField.getAsInt(0);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message