Skip to content
Snippets Groups Projects
Commit b92ac88c authored by Nick's avatar Nick :v:
Browse files

fix NPE

Change-Id: I2b17c110e30957e80da0b4aa77efd511e864d1b4
parent d96d04e1
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ public class VncFlinger extends Service {
quit();
if (mRemoteCursor)
((InputManager) getSystemService(INPUT_SERVICE)).setForceNullCursor(false);
if (mSupportClipboard)
if (mSupportClipboard && mClipboard != null && mClipListener != null)
mClipboard.removePrimaryClipChangedListener(mClipListener);
if (mDisplay != null)
mDisplay.release();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment