Skip to content

Commit 49b7671

Browse files
committed
Fix 'Continuation returned null' error when there is no previous activity (#4377)
1 parent da42c2f commit 49b7671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/ScreenshotTaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Task<Bitmap> captureScreenshot() {
9797
if (activity == null) {
9898
// TakeScreenshotAndStartFeedbackActivity was the current activity and there was no
9999
// active previous activity
100-
return null;
100+
return Tasks.forResult(null);
101101
}
102102
// We only take the screenshot here because this will be called on the main thread, so we
103103
// want to do as little work as possible

0 commit comments

Comments
 (0)