Commit b530f4bc authored by Edward Wang's avatar Edward Wang
Browse files

src: Fix NullPointerException in VideoPlayerHandler

WeakReference could be null.
parent 48d754c5
......@@ -516,6 +516,9 @@ public class VideoPlayerActivity extends Activity {
public void handleMessage(Message msg) {
VideoPlayerActivity activity = getOwner();
if(activity == null) // WeakReference could be GC'ed early
switch (msg.what) {
case FADE_OUT:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment