Mms: fix null point bug

Change-Id: I44b8b4c152171a359935586fa2d85be11b61fd8a