am 161b3624
: Merge "Fix NullpointerException in MediaMetadataRetriever"
* commit '161b3624c2243cc5267287ebb5107cecffc918d1': Fix NullpointerException in MediaMetadataRetriever
This commit is contained in:
@ -59,6 +59,10 @@ public class MediaMetadataRetriever
|
|||||||
* @throws IllegalArgumentException If the path is invalid.
|
* @throws IllegalArgumentException If the path is invalid.
|
||||||
*/
|
*/
|
||||||
public void setDataSource(String path) throws IllegalArgumentException {
|
public void setDataSource(String path) throws IllegalArgumentException {
|
||||||
|
if (path == null) {
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
}
|
||||||
|
|
||||||
FileInputStream is = null;
|
FileInputStream is = null;
|
||||||
try {
|
try {
|
||||||
is = new FileInputStream(path);
|
is = new FileInputStream(path);
|
||||||
|
Reference in New Issue
Block a user