Skip to content

Commit

Permalink
[app] fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornaco committed May 5, 2022
1 parent d5948d1 commit 7115b76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ProcessManageViewModel @Inject constructor(@ApplicationContext private val

val notRunningApps = filterPackages.filterNot { runningPackages.contains(it) }.map {
thanox.pkgManager.getAppInfo(it)
}.sortedWith { o1, o2 ->
}.filterNotNull().sortedWith { o1, o2 ->
Collator.getInstance(Locale.CHINESE).compare(o1.appLabel, o2.appLabel)
}

Expand Down

0 comments on commit 7115b76

Please sign in to comment.