File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
installations/testapp/Assets/Firebase/Sample/Installations Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,13 @@ Task TestCreateDestroyRace() {
177
177
var app = Firebase . FirebaseApp . DefaultInstance ;
178
178
installations = Firebase . Installations . FirebaseInstallations . GetInstance ( app ) ;
179
179
180
- // Even though the app is destroyed, this call should not result in
181
- // any problems, other than returning a potentially faulted task.
182
- installations . GetIdAsync ( ) ;
180
+ try {
181
+ installations . GetIdAsync ( ) ;
182
+ } catch ( System . NullReferenceException ) {
183
+ // Possible NullReferenceException because installations might be still
184
+ // being disposed from the previous loop, but not ideal.
185
+ DebugLog ( "WARNING: GetIdAsync threw a NullReferenceException" ) ;
186
+ }
183
187
184
188
app = null ;
185
189
installations = null ;
You can’t perform that action at this time.
0 commit comments