Skip to content

Commit ee2b525

Browse files
author
Valentin Rey Rosell
committed
Explicitly set browser to nil if browser type is not found
1 parent ab4f53f commit ee2b525

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ android/gradle/
3333
android/gradlew
3434
android/gradlew.bat
3535

36+
# Android/Eclipse
37+
#
38+
android/.settings/
39+
3640
# node.js
3741
#
3842
node_modules/

packages/react-native-app-auth/ios/RNAppAuth.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ - (NSString*)getErrorCode: (NSError*) error defaultCode: (NSString *) defaultCod
717717
}
718718
};
719719
BrowserBlock browser = browsers[browserType];
720+
if (!browser) {
721+
return nil;
722+
}
720723
return browser();
721724
}
722725
#endif

0 commit comments

Comments
 (0)