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: [email protected] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
