Commit b530f4bc authored by Edward Wang's avatar Edward Wang

src: Fix NullPointerException in VideoPlayerHandler

WeakReference could be null.
parent 48d754c5
......@@ -516,6 +516,9 @@ public class VideoPlayerActivity extends Activity {
@Override
public void handleMessage(Message msg) {
VideoPlayerActivity activity = getOwner();
if(activity == null) // WeakReference could be GC'ed early
return;
switch (msg.what) {
case FADE_OUT:
activity.hideOverlay(false);
......
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