From 55202c5111aff0df2f1b8e913326528c82eb43de Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 30 Oct 2014 16:07:38 +0100 Subject: Fixed Generic Error Bug --- .../src/main/java/at/gv/egiz/pdfas/lib/impl/ErrorExtractor.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/ErrorExtractor.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/ErrorExtractor.java index 8c2451e3..6708fc5b 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/ErrorExtractor.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/ErrorExtractor.java @@ -66,6 +66,11 @@ public class ErrorExtractor implements ErrorConstants { break; } } + + if(err != null) { + return err; + } + cur = e; // Search other reasons for (int i = 0; i < MAX_CAUSE_DEPTH; i++) { -- cgit v1.2.3