Kaydet (Commit) 66be4fee authored tarafından Christian Lohmaier's avatar Christian Lohmaier

android: prevent crash if storage is unavailable

Change-Id: I350acc1735d5fd22a27434fc5ccf2ab39bf3d2cf
üst 3b219e54
......@@ -59,6 +59,9 @@ public class ExtsdDocumentsProvider implements IExternalDocumentProvider,
String internalSDPath = internalSD.getAbsolutePath();
for (File option: options) {
// Returned paths may be null if a storage device is unavailable.
if (null == option) { continue; }
String optionPath = option.getAbsolutePath();
if(optionPath.contains(internalSDPath))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment