mirror of
https://github.com/videolan/vlc-android
synced 2024-11-24 02:17:15 +08:00
DirectoryAdapter: blind fix for a crash that never happens
This commit is contained in:
parent
cef94fc51a
commit
1250326701
@ -83,6 +83,9 @@ public class Util {
|
||||
}
|
||||
|
||||
public static String PathToURI(String path) {
|
||||
if(path == null) {
|
||||
throw new NullPointerException("Cannot convert null path!");
|
||||
}
|
||||
return LibVLC.nativeToURI(path);
|
||||
}
|
||||
|
||||
|
@ -361,8 +361,11 @@ public class DirectoryAdapter extends BaseAdapter {
|
||||
this.mCurrentDir = null;
|
||||
this.mCurrentRoot = null;
|
||||
}
|
||||
} catch (URISyntaxException e) {
|
||||
e.printStackTrace();
|
||||
} catch(URISyntaxException e) {
|
||||
Log.e(TAG, "URISyntaxException in browse()", e);
|
||||
return false;
|
||||
} catch(NullPointerException e) {
|
||||
Log.e(TAG, "NullPointerException in browse()", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user