android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit fffcc45b46a99c3df9b0e2c386ad697a38257ce2 Author: Jan Holesovsky <[email protected]> AuthorDate: Tue Jul 14 17:07:01 2020 +0200 Commit: Jan Holesovsky <[email protected]> CommitDate: Tue Jul 14 17:15:26 2020 +0200 android: A small follow-up, the intention was an early return. Change-Id: I3a73cd03c9ec51b7f190092702b4ef860c1f589b Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98748 Tested-by: Jan Holesovsky <[email protected]> Reviewed-by: Jan Holesovsky <[email protected]> diff --git a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java index 5fb44fa97..3374ff4ca 100644 --- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java +++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java @@ -784,8 +784,10 @@ public class LOActivity extends AppCompatActivity { if (mWebView != null) mWebView.post(new Runnable() { public void run() { - if (mWebView != null) + if (mWebView == null) { Log.i(TAG, "Skipped forwarding to the WebView: " + message); + return; + } Log.i(TAG, "Forwarding to the WebView: " + message); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
