Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4180

RLR Spec Passes null to a Method that Asserts notNull

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.M1
    • Fix Version/s: 5.0.M2
    • Component/s: DSL
    • Labels:

      Description

      See Sonar report (click on "new bug").

      Given that we coerce an empty string to null, we'd get a misleading message downstream about null not being allowed.

      Perhaps add an assert on line 135:

      Assert.hasText(expression, "'expression' cannot be null or empty");

      however, see the method at line 124 which explicitly passes null (and there are no test cases for that method).

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            grussell Gary Russell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: