mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Classic NullPointerException moment
This commit is contained in:
parent
25d1954e8a
commit
466d25156b
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ class SettingsAdvancedController : SettingsController() {
|
|||
}
|
||||
|
||||
basePreferences.displayProfile().changesIn(viewScope) { path ->
|
||||
val actualPath = UniFile.fromUri(context, path.toUri()).filePath ?: path
|
||||
val actualPath = UniFile.fromUri(context, path.toUri())?.filePath ?: path
|
||||
if (actualPath.isNotEmpty()) summary = actualPath
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue