Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
316
Issues
316
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Android
Commits
4a0848de
Commit
4a0848de
authored
Jun 22, 2016
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check url validity before downloading
(cherry picked from commit
37498246
)
parent
bc6096b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java
vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java
+2
-0
No files found.
vlc-android/src/org/videolan/vlc/util/HttpImageLoader.java
View file @
4a0848de
...
...
@@ -107,6 +107,8 @@ public class HttpImageLoader implements Callbacks {
Bitmap
icon
=
null
;
try
{
URL
url
=
new
URL
(
imageUrl
);
if
(
url
.
getPort
()
<=
0
)
return
null
;
urlConnection
=
(
HttpURLConnection
)
url
.
openConnection
();
InputStream
in
=
new
BufferedInputStream
(
urlConnection
.
getInputStream
());
icon
=
BitmapFactory
.
decodeStream
(
in
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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