Project: SWT
Bug 43394 ImageAnalyzer example failed to read PNG file.
Reported: 2003-09-20 12:45:02 | Status: resolved fixed

I attempted to feed the attached file to the image analyzer example and got an error dialog that said "Error loading file ... i/o error (java.lang.ArrayIndexOutOfBoundException: 0): java.lang.ArrayIndexOutOfBoundException: 0". Suspect this is a problem with the PNG reader.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/PngHuffmanTable.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/PngHuffmanTables.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/PngLzBlockReader.java