You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2008/05/12 13:55:22 UTC

svn commit: r655484 - /wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java

Author: jcompagner
Date: Mon May 12 04:55:22 2008
New Revision: 655484

URL: http://svn.apache.org/viewvc?rev=655484&view=rev
Log:
the contains can't be removed

Modified:
    wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java

Modified: wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java?rev=655484&r1=655483&r2=655484&view=diff
==============================================================================
--- wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java (original)
+++ wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java Mon May 12 04:55:22 2008
@@ -205,7 +205,7 @@
 		}
 
 		// Value not found are cached as well (value = null)
-		if (cacheKey != null)
+		if ((cacheKey != null) && cache.containsKey(cacheKey))
 		{
 			string = getFromCache(cacheKey);
 		}