AwesomeWebView-Android
AwesomeWebView-Android copied to clipboard
Nullable context reference when restoring application inside Base class
public class AwesomeWebView {
...
public Builder(@NonNull Context context) {
this.context = context;
Base.initialize(context);
}
...
}
There is a call to initialize context inside AndroidBaseUtils library before opening WebView screen. Imagine you hold the application when you are on WebView and android kills the process. After some time you are opening the app from recents, android system try to restore application, but of course no one call to init context again, reference is null and the app will crash during next attempt to get context.