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

StringUtil.replace returns null when the String value to be inserted is null

    Details

    • Branch Version/s:
      6.0.x, 5.2.x
    • Backported to Branch:
      Committed

      Description

      StringUtil.replace(String s, String oldSub, String newSub) should:
      (1) return null if s is null
      (2) return s if oldSub is null or ""
      (3) return s with oldSub replaced by "" if newSub is null or ""

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.han Michael Han (Inactive)
              Reporter:
              michael.han Michael Han (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 28 weeks, 6 days ago

                  Packages

                  Version Package
                  5.2.X EE
                  6.0.12 EE
                  6.1.0 CE RC1