whats the stacktrace for the npe?

-igor

2008/8/7 Uwe Schäfer <[EMAIL PROTECTED]>:
> Hi
>
> the current (1.4-m3) impl of
>
> ComponentStringResourceLoader.loadStringResource(Class,String,Locale,String)
>
> throws an NPE, that i am not sure of.
>
> I´d suggest:
>
> public String loadStringResource(Class clazz, final String key, final Locale
> locale,
>                        final String style)
>        {
>                if (clazz == null)
>                {
>                        return null;
>                }
>
>                // Load the properties associated with the path
>                IPropertiesFactory propertiesFactory =
> Application.get().getResourceSettings()
>                                .getPropertiesFactory();
>
>                while (true)
>                {
>
> // new lines here:
>
> if (clazz == null)
> {
>        return null;
> }
>
> right ?
>
>
> --
>
> THOMAS DAILY GmbH
> Adlerstraße 19
> 79098 Freiburg
> Deutschland
> T  + 49 761 3 85 59 0
> F  + 49 761 3 85 59 550
> E  [EMAIL PROTECTED]
> www.thomas-daily.de
>
> Geschäftsführer/Managing Directors:
> Wendy Thomas, Susanne Larbig
> Handelsregister Freiburg i.Br., HRB 3947
>
> Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
> kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
> morgens um 9:00 in Ihrer Mailbox.
>
> Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
> 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00
> Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
> lautet [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to