You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2008/06/26 09:06:42 UTC
svn commit: r671813 -
/wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java
Author: ivaynberg
Date: Thu Jun 26 00:06:42 2008
New Revision: 671813
URL: http://svn.apache.org/viewvc?rev=671813&view=rev
Log:
fix bug
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java
Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java?rev=671813&r1=671812&r2=671813&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java Thu Jun 26 00:06:42 2008
@@ -155,9 +155,13 @@
// first try default class loading locator to find the resource
IResourceStream stream = new ResourceStreamLocator().locate(clazz, path);
- // if default locator couldnt find the resource allow the application specific one to try
- stream = Application.get().getResourceSettings().getResourceStreamLocator().locate(clazz,
- path);
+ if (stream == null)
+ {
+ // if default locator couldnt find the resource allow the application specific one to
+ // try
+ stream = Application.get().getResourceSettings().getResourceStreamLocator().locate(
+ clazz, path);
+ }
if (stream == null)
{