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

Commit 77802977 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am 161b3624: Merge "Fix NullpointerException in MediaMetadataRetriever"

* commit '161b3624':
  Fix NullpointerException in MediaMetadataRetriever
parents dfad4fbd 161b3624
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -59,6 +59,10 @@ public class MediaMetadataRetriever
     * @throws IllegalArgumentException If the path is invalid.
     */
    public void setDataSource(String path) throws IllegalArgumentException {
        if (path == null) {
            throw new IllegalArgumentException();
        }

        FileInputStream is = null;
        try {
            is = new FileInputStream(path);