You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2014/01/03 12:56:55 UTC
svn commit: r1555060 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtils.java
Author: lofwyr
Date: Fri Jan 3 11:56:54 2014
New Revision: 1555060
URL: http://svn.apache.org/r1555060
Log:
TOBAGO-1349: ResourceManagerUtils must check for null images
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtils.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtils.java?rev=1555060&r1=1555059&r2=1555060&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtils.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceManagerUtils.java Fri Jan 3 11:56:54 2014
@@ -52,8 +52,7 @@ public final class ResourceManagerUtils
* Searches for an image and return it with the context path
*/
public static String getImageWithPath(final FacesContext facesContext, final String name) {
- return facesContext.getExternalContext().getRequestContextPath()
- + ResourceManagerFactory.getResourceManager(facesContext).getImage(facesContext, name);
+ return getImageWithPath(facesContext, name, false);
}
/**