Merge "Fix ringtone null pointer exception"
This commit is contained in:
committed by
Android (Google) Code Review
commit
bb261a3caf
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user