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

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

am 77802977: am 161b3624: Merge "Fix NullpointerException in MediaMetadataRetriever"

* commit '77802977':
  Fix NullpointerException in MediaMetadataRetriever
parents c82bcca5 77802977
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);