Skip to content

Commit

Permalink
Fixes #323
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Feb 13, 2019
1 parent 99f99cc commit 6eb2a4f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ public PdfBoxImage(byte[] image, String uri) throws IOException {
_bytes = image;
_uri = uri;

ImageInputStream in = ImageIO
.createImageInputStream(new ByteArrayInputStream(_bytes));
ImageInputStream in = null;
ImageReader reader = null;

try {
in = ImageIO
.createImageInputStream(new ByteArrayInputStream(_bytes));
Iterator<ImageReader> readers = ImageIO.getImageReaders(in);

if (readers.hasNext()) {
Expand Down

0 comments on commit 6eb2a4f

Please sign in to comment.