Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-64406

Calls from remote services to User.getDisplayURL() throw NPE

    Details

      Description

      UserImpl#getDisplayURL() throws NPE when ThemeDisplay is null, which is the case when remote JSON services are consumed.

      This essentially means the User object has unnecessary coupling to the portal's UI.

      It would be better if the method simply returned an empty string or threw a more specific exception so this can be handled gracefully within the respective remote services.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            id30721 id30721
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 32 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 CE RC1