Merge "Fix NullpointerException in MediaMetadataRetriever"

This commit is contained in:
Marco Nelissen
2013-07-26 21:13:58 +00:00
committed by Gerrit Code Review

View File

@@ -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);