Skip to content
  • Hugh Davenport's avatar
    Fix issue when param_... functions have default of null · 0043cc83
    Hugh Davenport authored
    Bug #872619
    
    Regression from 79810c3d
    
    
    
    Basically, a default parameter of null was given, then trim
    was called, which made it into the string '' which then failed
    the test is_null in the files it was used.
    
    This reorders the functions so that the trim is called after
    the test to see whether the default should be used. This means
    that the default value is never trimmed, and can be null.
    
    One exception to this, is the param_boolean which doesn't test
    to see whether it is the default that is returned, so a check
    is made first to see whether it is null.
    
    Change-Id: I66d7253a8414dec7eb3ea67ebd363ea068a32012
    Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
    0043cc83