swap order of initalization
#6505 - removing trailing whitespace
Merge branch 'hotfix/#6505-fix-null-pointer-in-inputfilter-factory'

Close #6505