Commit 440597a3 authored by Geoffrey Métais's avatar Geoffrey Métais

Videoplayer: Fix NPE on Chromebooks

parent bc889f7e
......@@ -43,7 +43,7 @@ public class DisplayManager {
mSelectedRenderer = selectedRender;
mMediaRouter = (MediaRouter) activity.getApplicationContext().getSystemService(Context.MEDIA_ROUTER_SERVICE);
mTextureView = textureView;
mPresentation = !cloneMode && !benchmark && selectedRender.getValue() == null ? createPresentation() : null;
mPresentation = !cloneMode && !benchmark && selectedRender != null && selectedRender.getValue() == null ? createPresentation() : null;
if (mSelectedRenderer != null) {
mRendererItem = mSelectedRenderer.getValue();
mSelectedRenderer.observeForever(mRendererObs);
......
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