Skip to content

Commit

Permalink
fix: fixed crash in FileLibraryDialogFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Mar 27, 2023
1 parent 09d54dc commit a31a3df
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,13 @@ class FileLibraryDialogFragment : ListPreferenceDialogFragmentCompat(), TargetFr
val foundTags = mutableMapOf<String /* tag */, MutableList<String> /* scripts */>()

fileLibPreference.entryValues.forEach { path ->
context?.let {
eelParser.load(
FileLibraryPreference.createFullPathCompat(it, path.toString()),
skipProperties = true
)
} ?: return@forEach

eelParser.load(FileLibraryPreference.createFullPathCompat(requireContext(), path.toString()), skipProperties = true)
if(eelParser.tags.isEmpty())
eelParser.fileName?.let(untaggedScripts::add)
eelParser.tags.forEach { tag ->
Expand Down

0 comments on commit a31a3df

Please sign in to comment.