Commit c731f40f authored by boliu's avatar boliu Committed by Commit bot

aw: Try to turn crash into java exception

Since I can't work out why things are null in native code anymore.

BUG=618807

Review-Url: https://codereview.chromium.org/2076633002
Cr-Commit-Position: refs/heads/master@{#400690}
parent 70ffef9c
......@@ -1578,6 +1578,10 @@ public class AwContents implements SmartClipProvider,
}
}
// Temporary to generate a Java stack for crbug.com/618807.
if (mNativeAwContents == 0) {
throw new RuntimeException("Calling load on destroyed webview " + mIsDestroyed);
}
nativeSetExtraHeadersForUrl(
mNativeAwContents, params.getUrl(), params.getExtraHttpRequestHeadersString());
params.setExtraHeaders(new HashMap<String, String>());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment