[#2212] CID84956:
Added a check for NULL input pointer