Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
483f1b41
Commit
483f1b41
authored
Feb 18, 2015
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid NPE
CID #1270674
parent
09819e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libvlc/src/org/videolan/libvlc/LibVlcUtil.java
libvlc/src/org/videolan/libvlc/LibVlcUtil.java
+2
-1
No files found.
libvlc/src/org/videolan/libvlc/LibVlcUtil.java
View file @
483f1b41
...
...
@@ -271,7 +271,8 @@ public class LibVlcUtil {
fileReader
=
new
FileReader
(
"/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq"
);
br
=
new
BufferedReader
(
fileReader
);
line
=
br
.
readLine
();
frequency
=
Float
.
parseFloat
(
line
)
/
1000
.
f
;
/* Convert to MHz */
if
(
line
!=
null
)
frequency
=
Float
.
parseFloat
(
line
)
/
1000
.
f
;
/* Convert to MHz */
}
catch
(
IOException
ex
)
{
Log
.
w
(
TAG
,
"Could not find maximum CPU frequency!"
);
}
catch
(
NumberFormatException
e
)
{
...
...
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