MaikJaek/flying-saucer

Improve error handling for missing resources

Opened this issue · 0 comments

If any refered resource is missing, NullPointerExceptions and such are thrown 
instead of exceptions the indicate which resource was missing. Examples:

Missing CSS results in:
java.io.IOException: Stream closed

Missing Fonts results in:
java.lang.NullPointerException
    at org.xhtmlrenderer.swing.NaiveUserAgent.getBinaryResource(NaiveUserAgent.java:237)

and so on...

Original issue reported on code.google.com by michael.wyraz on 4 Jul 2014 at 10:38