Null check at assignProperty and assignProperties