tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mluse...@apache.org
Subject svn commit: r1196640 - /tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
Date Wed, 02 Nov 2011 15:40:18 GMT
Author: mlusetti
Date: Wed Nov  2 15:40:17 2011
New Revision: 1196640

URL: http://svn.apache.org/viewvc?rev=1196640&view=rev
Log:
TAP5-1425 Throw an exception if asset is found but does not actually exists

Modified:
    tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java

Modified: tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java?rev=1196640&r1=1196639&r2=1196640&view=diff
==============================================================================
--- tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
(original)
+++ tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AssetSourceImpl.java
Wed Nov  2 15:40:17 2011
@@ -133,7 +133,7 @@ public class AssetSourceImpl implements 
     {
         Resource localized = locale == null ? unlocalized : unlocalized.forLocale(locale);
 
-        if (localized == null)
+	if (localized == null || !localized.exists())
             throw new RuntimeException(ServicesMessages.assetDoesNotExist(unlocalized));
 
         return getAssetForResource(localized);



Mime
View raw message