File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
firebase-appdistribution/src/main/java/com/google/firebase/appdistribution Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -252,9 +252,15 @@ public synchronized Task<AppDistributionRelease> checkForNewRelease() {
252
252
LogWrapper .getInstance ().v ("Response in progress" );
253
253
return cachedCheckForNewReleaseTask ;
254
254
}
255
+ if (!isTesterSignedIn ()) {
256
+ return Tasks .forException (
257
+ new FirebaseAppDistributionException (
258
+ Constants .ErrorMessages .AUTHENTICATION_ERROR , AUTHENTICATION_FAILURE ));
259
+ }
260
+
255
261
cachedCheckForNewReleaseTask =
256
- signInTester ()
257
- .onSuccessTask ( unused -> this . newReleaseFetcher . checkForNewRelease () )
262
+ this . newReleaseFetcher
263
+ .checkForNewRelease ()
258
264
.onSuccessTask (
259
265
appDistributionReleaseInternal -> {
260
266
setCachedNewRelease (appDistributionReleaseInternal );
You can’t perform that action at this time.
0 commit comments