mmc fix null pointer dereference