if(player!=NULL) player->shuffled();
I do such things to avoid passing a null reference to a string constructor, but when compiling it still
Somewhere, somehow, you're calling the std::string constructor with the const char* value NULL.
std::string
const char*
To avoid the problem. Don't do that.