Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2819

I18nBridgeImpl throws NullPointerException when resource-bundle is omitted from portlet.xml in Liferay Portal 6.2

    Details

      Description

      When running under Liferay Portal 6.2, if the WEB-INF/portlet.xml descriptor does not contain a resource-bundle element, then calling PortletConfig.getResourceBundle(Locale) returns an instance of java.util.ResourceBundle that throws a NullPointerException for every method call. This may or may not be a bug in Liferay Portal. But since the problem exists in Liferay Portal 6.2 CE GA6 (the final open source release) it must be worked-around in the bridge.

      The workaround is to have liferay-faces-bridge-ext decorate the BridgePortletConfigFactory so that it returns an empty java.util.ResourceBundle when necessary.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  bridge-ext-1.0.0
                  bridge-ext-2.0.0
                  bridge-ext-3.0.0