Description of problem: com.arsdigita.mimetypes.image.ImageSizer(String path) : public Dimension computeImageSize(String path) throws IOException { DataInputStream in = null; Dimension size = null; try { in = new DataInputStream(new FileInputStream(path)); size = computeSize(in); } catch (IOException e) { throw e; } finally { in.close(); } return size; } In finally, in must be checked it is not null before closing it. line 64 : in.close(); should must replaced by : if (in != null) in.close(); Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: