Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
11314179
Commit
11314179
authored
Oct 23, 2011
by
Sébastien Toque
Browse files
fix crash if MainActivity's instance doesn't exists
parent
e40a70ec
Changes
1
Show whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/android/LibVLC.java
View file @
11314179
...
...
@@ -55,7 +55,7 @@ public class LibVLC {
sInstance
=
new
LibVLC
();
sInstance
.
init
();
if
(
sListener
==
null
)
{
if
(
sListener
==
null
&&
MainActivity
.
getInstance
()
!=
null
)
{
SharedPreferences
prefs
=
PreferenceManager
.
getDefaultSharedPreferences
(
MainActivity
.
getInstance
());
/* This needs to be stored in a local field, to avoid garbage collection, since
* the shared prefs only keep a weak reference to it. */
...
...
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