You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/03/26 03:39:02 UTC
svn commit: r927673 -
/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java
Author: lu4242
Date: Fri Mar 26 02:39:01 2010
New Revision: 927673
URL: http://svn.apache.org/viewvc?rev=927673&view=rev
Log:
MYFACES-2625 TagLibrary using custom namespace fails to load composite component
Modified:
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java
Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java?rev=927673&r1=927672&r2=927673&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java Fri Mar 26 02:39:01 2010
@@ -91,8 +91,11 @@ public final class TagLibraryConfig
Resource compositeComponentResource = resourceHandler.createResource(
localName +".xhtml", _compositeLibraryName);
- URL url = compositeComponentResource.getURL();
- return (url != null);
+ if (compositeComponentResource != null)
+ {
+ URL url = compositeComponentResource.getURL();
+ return (url != null);
+ }
}
return result;
}