am 752942ec: Merge "The phone is crashing when unknown mime content is transferred."

* commit '752942ec4719e6a274d6ab11103ac28459cb0f0c':
  The phone is crashing when unknown mime content is transferred.
This commit is contained in:
Jean-Baptiste Queru
2010-12-28 10:55:04 -08:00
committed by Android Git Automerger

View File

@ -201,6 +201,7 @@ public abstract class ContentResolver {
} catch (RemoteException e) {
return null;
} catch (java.lang.Exception e) {
Log.w(TAG, "Failed to get type for: " + url + " (" + e.getMessage() + ")");
return null;
} finally {
releaseProvider(provider);
@ -216,6 +217,9 @@ public abstract class ContentResolver {
return type;
} catch (RemoteException e) {
return null;
} catch (java.lang.Exception e) {
Log.w(TAG, "Failed to get type for: " + url + " (" + e.getMessage() + ")");
return null;
}
}