You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by me...@apache.org on 2012/09/18 17:21:27 UTC

svn commit: r1387215 - /xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter.java

Author: mehdi
Date: Tue Sep 18 15:21:27 2012
New Revision: 1387215

URL: http://svn.apache.org/viewvc?rev=1387215&view=rev
Log:
Bugzilla#53889: Removed fail-fast mechanism when PDF objects are null

Modified:
    xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter.java

Modified: xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter.java?rev=1387215&r1=1387214&r2=1387215&view=diff
==============================================================================
--- xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter.java (original)
+++ xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter.java Tue Sep 18 15:21:27 2012
@@ -151,13 +151,6 @@ class PDFBoxAdapter {
                             + object.getObjectNumber().longValue()
                             + " " + object.getGenerationNumber().longValue());
                 }
-            } else {
-                throw new IllegalStateException("Expected to get a PDFObject but got"
-                        + (obj != null ? " a " + obj.getClass().getName() : " null")
-                        + " for " + object);
-            }
-            if (getCachedClone(keyBase) == null) {
-                throw new IllegalStateException("Object must be cached at this point: " + keyBase);
             }
             return obj;
         } else if (base instanceof COSArray) {



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org