librestreaming icon indicating copy to clipboard operation
librestreaming copied to clipboard

Crash when back pressed or app closed

Open RazmigPapissian opened this issue 8 years ago • 1 comments

Everytime I press the back button or I close the app from the baseSteamingActivity, the app crashes. The following is the error:

Attempt to invoke virtual method 'boolean me.lake.librestreaming.client.RESVideoClient.stopPreview(boolean)' on a null object reference

Seems like videoClient in RESClient.java is null. Whats the best way to fix this?

screen shot 2017-07-24 at 10 43 23 am

RazmigPapissian avatar Jul 24 '17 14:07 RazmigPapissian

same crash in my case , add if (resClient != null) resClient.destroy(); ...... if (resClient != null) resClient.stopPreview(true);

in ...\activity\VideoActivity.java

zzugyl avatar Jul 25 '17 02:07 zzugyl