Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9175

Simple random function - Should trim the min/max values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.16.1, 2.17.0
    • camel-core
    • None
    • Novice

    Description

      The random function takes one or two numbers as min/max range. But if you specify a space such as random(1, 10) then you get a NFE exception. We should add a trim() in the code so it trims spaces.

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: