am 161b3624: Merge "Fix NullpointerException in MediaMetadataRetriever"

* commit '161b3624c2243cc5267287ebb5107cecffc918d1':
  Fix NullpointerException in MediaMetadataRetriever
This commit is contained in:
Marco Nelissen
2013-07-26 14:52:41 -07:00
committed by Android Git Automerger

View File

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