You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2023/02/21 13:52:59 UTC
[myfaces] branch main updated: MYFACES-4570: fix NPE (#531)
This is an automated email from the ASF dual-hosted git repository.
melloware pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/main by this push:
new 43b66f711 MYFACES-4570: fix NPE (#531)
43b66f711 is described below
commit 43b66f711f260a176af8fb707b0c17d97cf7048d
Author: Paul A. Nicolucci <pn...@gmail.com>
AuthorDate: Tue Feb 21 08:52:53 2023 -0500
MYFACES-4570: fix NPE (#531)
---
.../main/java/org/apache/myfaces/resource/FacesJSResourceLoader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/impl/src/main/java/org/apache/myfaces/resource/FacesJSResourceLoader.java b/impl/src/main/java/org/apache/myfaces/resource/FacesJSResourceLoader.java
index ee1352077..f598dca3b 100644
--- a/impl/src/main/java/org/apache/myfaces/resource/FacesJSResourceLoader.java
+++ b/impl/src/main/java/org/apache/myfaces/resource/FacesJSResourceLoader.java
@@ -95,7 +95,7 @@ public class FacesJSResourceLoader extends ResourceLoaderWrapper
getHttpServletRequest(FacesContext.getCurrentInstance().getExternalContext());
//name mapping does not happen on meta level
- if(!(libraryName.equals(JsfLibrary.NAMESPACE) &&
+ if(!(JsfLibrary.NAMESPACE.equals(libraryName) &&
(
resourceName.contains(facesJsShortName) ||
resourceName.contains(facesJsLongName) // just in case the behavior is altered in the future