check for null before calling native webkit from java webview
fixes http://b/issue?id=2121684
This commit is contained in:
@@ -1650,12 +1650,14 @@ final class WebViewCore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* package */ synchronized boolean pictureReady() {
|
/* package */ synchronized boolean pictureReady() {
|
||||||
return nativePictureReady();
|
return 0 != mNativeClass ? nativePictureReady() : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*package*/ synchronized Picture copyContentPicture() {
|
/*package*/ synchronized Picture copyContentPicture() {
|
||||||
Picture result = new Picture();
|
Picture result = new Picture();
|
||||||
nativeCopyContentToPicture(result);
|
if (0 != mNativeClass) {
|
||||||
|
nativeCopyContentToPicture(result);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user