Why not put this after line 195?

    else
    {
        return NULL;
    }