Project

General

Profile

Actions

Bug #424

closed

Fix a sporadic crash if the URL is reported to be null in `onPageFinished()`

Added by Soren Stoutner over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Critical Bug
Start date:
05/01/2019
Due date:
% Done:

0%

Estimated time:

Description

--------- beginning of crash
[ 04-30 19:27:31.724 3731: 3731 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.stoutner.privacybrowser.standard, PID: 3731
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at com.stoutner.privacybrowser.activities.Ca.onPageFinished(Unknown Source:285)
at xf.c(SourceFile:251)
at afs.handleMessage(SourceFile:72)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6797)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:772)

There should be no way for this to happen (how can the page finish loading if it doesn't even know what the URL is?) Likely this is some sort of race condition, possibly related to the way things are processed in `onResume()`.

Actions #1

Updated by Soren Stoutner over 5 years ago

  • Tracker changed from Feature to Bug
Actions #2

Updated by Soren Stoutner over 5 years ago

  • Subject changed from Fix a sporadic crash if the URL is reported to be null `onPageFinished()` to Fix a sporadic crash if the URL is reported to be null in `onPageFinished()`
Actions #3

Updated by Soren Stoutner over 5 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF