Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/android/AdblockPlus.java

Issue 8954027: android: Crash fixes (Closed)
Patch Set: Created Nov. 27, 2012, 10:57 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/org/adblockplus/android/AdblockPlus.java
===================================================================
--- a/src/org/adblockplus/android/AdblockPlus.java
+++ b/src/org/adblockplus/android/AdblockPlus.java
@@ -454,6 +454,11 @@
*/
public void stopInteractive()
{
+ // onStop is sometimes called without prior calling onStart
+ // by Android system
+ if (js == null)
Felix Dahlke 2012/11/28 08:12:56 This is the same safe guard as in issue 8956033 -
Andrey Novikov 2012/11/28 08:25:01 If the problem will occur elsewhere I will do.
+ return;
+
js.execute(new Runnable()
{
@Override

Powered by Google App Engine
This is Rietveld