Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33c666d9 authored by Youming Ye's avatar Youming Ye
Browse files

Fix ringtone null pointer exception

Bug: 128468578
Test: Build
Change-Id: If65f0194712c8358fdbd88e7d04478f8395a012b
parent 38076cdc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }