Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 41e10f0

Browse files
authored
Fix internal break since listing contents can return null (#9078)
1 parent cf1b203 commit 41e10f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shell/platform/android/io/flutter/view/FlutterMain.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ private static Set<String> listAssets(@NonNull Context applicationContext, @NonN
375375
private static Set<String> listLibs(@NonNull Context applicationContext) {
376376
ApplicationInfo applicationInfo = getApplicationInfo(applicationContext);
377377
File[] files = new File(applicationInfo.nativeLibraryDir).listFiles();
378+
if (files == null) {
379+
files = new File[0];
380+
}
378381

379382
ImmutableSetBuilder<String> builder = ImmutableSetBuilder.newInstance();
380383
for (File file : files) {

0 commit comments

Comments
 (0)