myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Schwartz (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Updated] (TRINIDAD-2488) NPE in TrinidadSkinProvider when base skin is not included in skin def in trinidad-skins.xml
Date Fri, 27 Jun 2014 20:46:25 GMT

     [ https://issues.apache.org/jira/browse/TRINIDAD-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andy Schwartz updated TRINIDAD-2488:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.1-core
         Assignee: Andy Schwartz
           Status: Resolved  (was: Patch Available)

Committed in r1606219.

Thanks for the fix Prakash!

> NPE in TrinidadSkinProvider when base skin is not included in skin def in trinidad-skins.xml
> --------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2488
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2488
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Skinning
>    Affects Versions: 2.1.0-core
>            Reporter: Prakash Udupa
>            Assignee: Andy Schwartz
>             Fix For: 2.1.1-core
>
>         Attachments: TRINIDAD-2488.trunk.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In our application, we encountered this NPE, whenever base skin is not mentioned in the
skin definition in trinidad-skins.xml (trivial to build a test-case thus). This needs to be
fixed, because Trinidad framework is supposed to assume the default base skin based on renderkit
or otherwise default to Trinidad's "simple.desktop" skin.
> ==========
> #	java.lang.NullPointerException
> #	 at
> org.apache.myfaces.trinidadinternal.skin.provider.TrinidadSkinProvider.loadAvailableSkin(TrinidadSkinProvider.java:163)
> #	 at
> org.apache.myfaces.trinidadinternal.skin.provider.BaseSkinProvider._getMatchingSkin(BaseSkinProvider.java:216)
> #	 at
> org.apache.myfaces.trinidadinternal.skin.provider.BaseSkinProvider.getSkin(BaseSkinProvider.java:60)
> #	 at
> org.apache.myfaces.trinidadinternal.skin.provider.SkinProviderRegistry.getSkin(SkinProviderRegistry.java:116)
> #	 at
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderingContext._initializeSkin(CoreRenderingContext.java:635)
> #	 at
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderingContext.<init>(CoreRenderingContext.java:89)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message