Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
bc489c42
Commit
bc489c42
authored
4 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Fix NullPointerException
parent
7d8ab54f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!784
Crash fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libvlc/src/org/videolan/libvlc/util/VLCUtil.java
+3
-5
3 additions, 5 deletions
libvlc/src/org/videolan/libvlc/util/VLCUtil.java
with
3 additions
and
5 deletions
libvlc/src/org/videolan/libvlc/util/VLCUtil.java
+
3
−
5
View file @
bc489c42
...
...
@@ -25,12 +25,9 @@ import android.content.Context;
import
android.content.pm.ApplicationInfo
;
import
android.net.Uri
;
import
android.os.Build
;
import
androidx.annotation.NonNull
;
import
android.util.Log
;
import
org.videolan.libvlc.interfaces.ILibVLC
;
import
org.videolan.libvlc.interfaces.IMedia
;
import
org.videolan.libvlc.Media
;
import
androidx.annotation.NonNull
;
import
java.io.BufferedReader
;
import
java.io.Closeable
;
...
...
@@ -508,7 +505,8 @@ public class VLCUtil {
* Therefore, decode the characters authorized by Android Uri when creating an Uri from VLC.
*/
public
static
Uri
UriFromMrl
(
String
mrl
)
{
final
char
array
[]
=
mrl
.
toCharArray
();
if
(
mrl
==
null
)
return
null
;
final
char
[]
array
=
mrl
.
toCharArray
();
final
StringBuilder
sb
=
new
StringBuilder
(
array
.
length
*
2
);
for
(
int
i
=
0
;
i
<
array
.
length
;
++
i
)
{
final
char
c
=
array
[
i
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment