Merge "Fix ringtone null pointer exception"

This commit is contained in:
TreeHugger Robot
2019-04-02 20:23:35 +00:00
committed by Android (Google) Code Review

View File

@@ -1103,7 +1103,7 @@ public class MediaPlayer extends PlayerBase
setDataSource(afd);
return true;
} catch (NullPointerException | SecurityException | IOException ex) {
Log.w(TAG, "Couldn't open " + uri == null ? "null uri" : uri.toSafeString(), ex);
Log.w(TAG, "Couldn't open " + (uri == null ? "null uri" : uri.toSafeString()), ex);
return false;
}
}