Fix null pointer result in UT failed