Bash: warning: command substitution: ignored null byte in input

I am running shell script for certain tasks but getting warning as follows

bash: warning: command substitution: ignored null byte in input

How can I hide this warning? Can we get rid of “warning: command substitution: ignored null byte in input”?