You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/05/28 20:42:00 UTC

[jira] [Created] (TEXT-165) ResourceBundleStringLookup.lookup(String)

Gary Gregory created TEXT-165:
---------------------------------

             Summary: ResourceBundleStringLookup.lookup(String)
                 Key: TEXT-165
                 URL: https://issues.apache.org/jira/browse/TEXT-165
             Project: Commons Text
          Issue Type: Bug
    Affects Versions: 1.6
            Reporter: Gary Gregory
            Assignee: Gary Gregory


The method {{org.apache.commons.text.lookup.ResourceBundleStringLookup.lookup(String)}} throws a {{MissingResourceException}} instead of returning {{null}} if a key is absent.

This is a problem when you are using a resource bundle like this for example, when the key is missing, we want the method to return null such that an interpolator can supply a default value.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)