Bugs item #1350108, was opened at 2005-11-07 10:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1350108&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Martijn Dashorst (dashorst)
Assigned to: Nobody/Anonymous (nobody)
Summary: NPE in wicket.Localizer.getString()

Initial Comment:
The following doc states that the component may be
null, but then does 'component.getLocale()'... This is
a contradiction.


        /**
         * Get the localized string for the given component.
The component may be
         * null in which case the component string resource
loader will not be used.
         * It the component is not null then it must be a
component that has already
         * been added to a page, either directly or via a
parent container. The
         * locale and style are obtained from the current user
session.
         * 
         * @param key
         *            The key to obtain the resource for
         * @param component
         *            The component to get the resource for
(optional)
         * @param defaultValue
         *            The default value (optional)
         * @return The string resource
         * @throws MissingResourceException
         *             If resource not found and configuration
dictates that
         *             exception should be thrown
         */
        public String getString(final String key, final
Component component, final String defaultValue)
                        throws MissingResourceException
        {
                return getString(key, component, null,
component.getLocale(), component.getStyle(),
                                defaultValue);
        }


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1350108&group_id=119783


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to