File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2085,6 +2085,10 @@ static void pauseUpdatePicture(WebViewCore core) {
20852085 if (!core .getSettings ().enableSmoothTransition ()) return ;
20862086
20872087 synchronized (core ) {
2088+ if (core .mNativeClass == 0 ) {
2089+ Log .w (LOGTAG , "Cannot pauseUpdatePicture, core destroyed or not initialized!" );
2090+ return ;
2091+ }
20882092 core .nativeSetIsPaused (true );
20892093 core .mDrawIsPaused = true ;
20902094 }
@@ -2099,6 +2103,10 @@ static void resumeUpdatePicture(WebViewCore core) {
20992103 return ;
21002104
21012105 synchronized (core ) {
2106+ if (core .mNativeClass == 0 ) {
2107+ Log .w (LOGTAG , "Cannot resumeUpdatePicture, core destroyed!" );
2108+ return ;
2109+ }
21022110 core .nativeSetIsPaused (false );
21032111 core .mDrawIsPaused = false ;
21042112 // always redraw on resume to reenable gif animations
You can’t perform that action at this time.
0 commit comments