Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4627

Use StringUtils.isEmpty(stringObject) instead of (stringObject == null || stringObject.equals(""))

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Platform 2.0.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      openmrs-core has lots of such references as defined to be replaced in the summary/title of this ticket, locate or search for all such references for if (stringObject == null || stringObject.equals("") and instead use StringUtils. We may even be still having some code using if (stringObject == null || "".equals(stringObject) as introduced to work better in avoiding NPE by GCI-2014

      This is our preference according to our coding conventions

        Attachments

          Activity

            People

            Assignee:
            tanayabh Tanay Abhra
            Reporter:
            k.joseph Kaweesi Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m