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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java

Issue 2761983002: [Remoting Android] Fix crash caused by fetchAuthToken() (Closed)
Patch Set: Created 3 years, 9 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: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
index 3a4fcf15ebc17f16f9aaf48573c27852c6071669..918b3622811722105a845728cc85b503361a1308 100644
--- a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
+++ b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
@@ -59,7 +59,8 @@ public class JniInterface {
@CalledByNative
private static void fetchAuthToken() {
if (sAccount == null) {
- throw new IllegalStateException("Account is not set before fetching the auth token.");
+ Log.w(TAG, "Account is not set before fetching the auth token.");
Sergey Ulanov 2017/03/21 18:39:37 Maybe add a comment here to explain why we can ign
Yuwei 2017/03/21 19:02:24 Done.
+ return;
}
sLoggerTokenConsumer.consume(sAccount, new OAuthTokenFetcher.Callback() {
@Override
« 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