Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
13a123e6
Commit
13a123e6
authored
Mar 22, 2018
by
Geoffrey Métais
Browse files
Prevent NPE when removable storage is not found
parent
e943418c
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/helpers/hf/WriteExternalDelegate.kt
View file @
13a123e6
...
...
@@ -92,7 +92,7 @@ class WriteExternalDelegate : BaseHeadlessFragment() {
if
(
activity
===
null
)
return
val
fragment
=
WriteExternalDelegate
()
callback
=
cb
storage
=
FileUtils
.
getMediaStorage
(
uri
)
storage
=
FileUtils
.
getMediaStorage
(
uri
)
?:
return
fragment
.
arguments
=
Bundle
(
1
).
apply
{
putString
(
KEY_STORAGE_PATH
,
storage
)
}
activity
.
supportFragmentManager
.
beginTransaction
().
add
(
fragment
,
TAG
).
commitAllowingStateLoss
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment