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

Fix internal break since listing contents can return null #9078

Merged
merged 1 commit into from
May 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions shell/platform/android/io/flutter/view/FlutterMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ private static Set<String> listAssets(@NonNull Context applicationContext, @NonN
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) {
Expand Down