NPE in File.close()
General-Purpose PDF Library for Java and .NET
Status: Beta
Brought to you by:
stechio
Build pdfclown.jar on 22 june 2015 (clown-code-223-trunk).
Got a NPE when closing the file object created from an InputStream:
java.lang.NullPointerException at java.io.File.<init>(File.java:251) at org.pdfclown.files.File.close(File.java:410)
Calling code:
public static List<java.awt.Rectangle> searchAndHighlightText(InputStream pdfInputStream, OutputStream pdfOutputStream, String textRegex) { org.pdfclown.files.File file = null; try { file = new org.pdfclown.files.File(pdfInputStream); ... } finally { try { if(file != null) file.close(); } catch (IOException e) { LOGGER.warn("Error closing PDF Clown file: " + e.getMessage()); } }