result in RCTAsyncStorage.multiGet could be null.
Summary: App will crash if result is null. Closes https://github.com/facebook/react-native/pull/10338 Differential Revision: D4335305 Pulled By: lacker fbshipit-source-id: 4910bfd7c56525a2ef1b252b56b8debd21fa2bae
This commit is contained in:
parent
901178d53c
commit
eba356fb13
|
@ -264,7 +264,7 @@ var AsyncStorage = {
|
|||
// Is there a way to avoid using the map but fix the bug in this breaking test?
|
||||
// https://github.com/facebook/react-native/commit/8dd8ad76579d7feef34c014d387bf02065692264
|
||||
const map = {};
|
||||
result.forEach(([key, value]) => map[key] = value);
|
||||
result && result.forEach(([key, value]) => { map[key] = value; return value; });
|
||||
const reqLength = getRequests.length;
|
||||
for (let i = 0; i < reqLength; i++) {
|
||||
const request = getRequests[i];
|
||||
|
|
Loading…
Reference in New Issue