Skip to content

Commit

Permalink
Merge pull request #33 from diging/develop
Browse files Browse the repository at this point in the history
[GECO-128] udpated pdfbox version; catching runtime exception (#31)
  • Loading branch information
jdamerow authored Apr 1, 2021
2 parents 37da8b1 + 8bfef5c commit 295e1f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cepheus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.20</version>
<version>2.0.23</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-tools</artifactId>
<version>2.0.20</version>
<version>2.0.23</version>
</dependency>
<dependency>
<groupId>com.github.jai-imageio</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ public void extractImages(IImageExtractionRequest request) throws CepheusExtract
requestPage.setContentType(pageImage.contentType);
requestPage.setSize(pageImage.size);
requestPage.setStatus(PageStatus.COMPLETE);

} catch (IllegalArgumentException | IOException | NegativeArraySizeException e) {
} catch (IOException | RuntimeException e) {
messageHandler.handleMessage("Could not render image.", e, MessageType.ERROR);
requestPage.setStatus(PageStatus.FAILED);
requestPage.setErrorMsg(e.getMessage());
Expand Down

0 comments on commit 295e1f8

Please sign in to comment.