t is the mContentType is null which causes the RuntimeException.

Check it before use, if the mContentType is null, throws
MmsException to show a toast. By the way, the guess mime type
from extension function needs the string to be lower case.

CRs-Fixed: 520840

Change-Id: I724b9d72c3090cbd1a833f8c70d370707409ddd5