forked from firka/flutter
Fix internal break since listing contents can return null (flutter/engine#9078)
This commit is contained in:
committed by
GitHub
parent
4c2dd170b2
commit
d0b8eba0af
@@ -375,6 +375,9 @@ public class FlutterMain {
|
||||
private static Set<String> listLibs(@NonNull Context applicationContext) {
|
||||
ApplicationInfo applicationInfo = getApplicationInfo(applicationContext);
|
||||
File[] files = new File(applicationInfo.nativeLibraryDir).listFiles();
|
||||
if (files == null) {
|
||||
files = new File[0];
|
||||
}
|
||||
|
||||
ImmutableSetBuilder<String> builder = ImmutableSetBuilder.newInstance();
|
||||
for (File file : files) {
|
||||
|
||||
Reference in New Issue
Block a user