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
37498246
Commit
37498246
authored
Jun 22, 2016
by
Geoffrey Métais
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check url validity before downloading
parent
c6037419
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 @
37498246
...
@@ -107,6 +107,8 @@ public class HttpImageLoader implements Callbacks {
...
@@ -107,6 +107,8 @@ public class HttpImageLoader implements Callbacks {
Bitmap
icon
=
null
;
Bitmap
icon
=
null
;
try
{
try
{
URL
url
=
new
URL
(
imageUrl
);
URL
url
=
new
URL
(
imageUrl
);
if
(
url
.
getPort
()
<=
0
)
return
null
;
urlConnection
=
(
HttpURLConnection
)
url
.
openConnection
();
urlConnection
=
(
HttpURLConnection
)
url
.
openConnection
();
InputStream
in
=
new
BufferedInputStream
(
urlConnection
.
getInputStream
());
InputStream
in
=
new
BufferedInputStream
(
urlConnection
.
getInputStream
());
icon
=
BitmapFactory
.
decodeStream
(
in
);
icon
=
BitmapFactory
.
decodeStream
(
in
);
...
...
Geoffrey Métais
@Dekans
mentioned in commit
4a0848de
·
Jun 22, 2016
mentioned in commit
4a0848de
mentioned in commit 4a0848de93d8f2ad135492fbfd27b1d89e309d42
Toggle commit list
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