File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
firebase-perf/src/main/java/com/google/firebase/perf/config Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ private boolean getIsSdkEnabled() {
234
234
235
235
Boolean newValue = rcValue .get ();
236
236
// b. Only cache and return this value if it is different from the current value.
237
- if (!deviceCacheValue .isAvailable () || deviceCacheValue .get () != newValue ) {
237
+ if (deviceCacheValue == null || !deviceCacheValue .isAvailable () || deviceCacheValue .get () != newValue ) {
238
238
deviceCacheManager .setValue (config .getDeviceCacheFlag (), newValue );
239
239
}
240
240
@@ -270,7 +270,7 @@ private boolean getIsSdkVersionDisabled() {
270
270
// Do not check FRC last fetch status because it is the most recent value device can get.
271
271
String newValue = rcValue .get ();
272
272
// Only cache and return this value if it is different from the current value.
273
- if (!deviceCacheValue .isAvailable () || !deviceCacheValue .get ().equals (newValue )) {
273
+ if (deviceCacheValue == null || !deviceCacheValue .isAvailable () || !deviceCacheValue .get ().equals (newValue )) {
274
274
deviceCacheManager .setValue (config .getDeviceCacheFlag (), newValue );
275
275
}
276
276
return isFireperfSdkVersionInList (newValue );
You can’t perform that action at this time.
0 commit comments