Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaClient.java

Issue 1856823002: Add null-check in OmahaClient for handling intent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move check earlier. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaClient.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaClient.java b/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaClient.java
index 20f1de70b7d0507f76cc223b4e50161523971e7e..5b858aac30b67d58f55650a3a2cef75770871061 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaClient.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaClient.java
@@ -198,6 +198,10 @@ public class OmahaClient extends IntentService {
return;
}
+ if (getRequestGenerator() == null) {
+ return;
+ }
+
if (!mStateHasBeenRestored) {
restoreState();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698