Commit c2f75ac5 authored by justin's avatar justin

防止空指针

parent 61cae433
...@@ -177,7 +177,10 @@ public class XFlutterTextureView extends TextureView implements RenderSurface { ...@@ -177,7 +177,10 @@ public class XFlutterTextureView extends TextureView implements RenderSurface {
} }
flutterRenderer.stopRenderingToSurface(); flutterRenderer.stopRenderingToSurface();
renderSurface.release(); if(renderSurface!=null){
renderSurface = null; renderSurface.release();
renderSurface = null;
}
} }
} }
\ No newline at end of file
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