xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r648144 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java
Date Tue, 15 Apr 2008 07:29:33 GMT
Author: jeremias
Date: Tue Apr 15 00:29:30 2008
New Revision: 648144

URL: http://svn.apache.org/viewvc?rev=648144&view=rev
Log:
Don't swallow exception if there's an error in the URI.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java?rev=648144&r1=648143&r2=648144&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java
Tue Apr 15 00:29:30 2008
@@ -362,7 +362,8 @@
                 }
             }
         } catch (URISyntaxException e) {
-            //ignore
+            throw new IllegalArgumentException("URI is invalid: "
+                    + e.getLocalizedMessage());
         }
         return null;
     }



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message