am 96cfad5d: check for null before calling native webkit from java webview

Merge commit '96cfad5d673b49d8b3a724d7b1066493aacd74d5' into eclair-plus-aosp

* commit '96cfad5d673b49d8b3a724d7b1066493aacd74d5':
  check for null before calling native webkit from java webview
This commit is contained in:
Cary Clark
2009-09-25 09:14:27 -07:00
committed by Android Git Automerger

View File

@@ -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;
} }