On 9/5/07, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>
>
> new ResourceModel("MY_MSG", null).getObject() gave me nullpointer.



hmm thats because ResourceModel is meant to be wrapped (its an
AsignableModel)
but it should also work without the component:

    return Application.get
().getResourceSettings().getLocalizer().getString(resourceKey,
                (Component)null, defaultValue);

that call with a null component shouldnt give you a nullpointer thats
strange

johan

Reply via email to