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

RLR Spec Passes null to a Method that Asserts notNull

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Complete
    • 5.0.M1
    • 5.0.M2
    • DSL

    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

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

            Dates

              Created:
              Updated:
              Resolved: