This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | IndexOutOfBoundsException: off < 0 || len < 0 || off+len > b.length || off+len < 0! | ||
---|---|---|---|
Product: | utilities | Reporter: | Ivan Sidorkin <ivansidorkin> |
Component: | Image | Assignee: | Alexey Butenko <alexeybutenko> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=2492 | ||
Issue Type: | DEFECT | Exception Reporter: | 2492 |
Attachments: |
stacktrace
Example of image which cause the exception |
Description
Ivan Sidorkin
2009-03-11 08:55:59 UTC
Created attachment 78020 [details]
stacktrace
changeset f71ca8bc6989 I've fixed the Exception but not the issue itself, because com.sun.imageio.plugins.gif.GIFImageReader class not able to read some gif files, and it is not related to Netbeans. Here is the code which will give an Exception for some gif files String fileStr="columnIndex.gif"; File file = new File(fileStr); Iterator<ImageReader> it = javax.imageio.ImageIO.getImageReadersByFormatName("GIF"); ImageReader reader = it.next(); FileImageInputStream input = new FileImageInputStream(file); reader.setInput(input); reader.read(0); Created attachment 78041 [details]
Example of image which cause the exception
Fixed |