Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96cfad5d authored by Cary Clark's avatar Cary Clark
Browse files

check for null before calling native webkit from java webview

parent 82e62668
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1650,12 +1650,14 @@ final class WebViewCore {
    }

    /* package */ synchronized boolean pictureReady() {
        return nativePictureReady();
        return 0 != mNativeClass ? nativePictureReady() : false;
    }

    /*package*/ synchronized Picture copyContentPicture() {
        Picture result = new Picture();
        if (0 != mNativeClass) {
            nativeCopyContentToPicture(result);
        }
        return result;
    }