Skip to content

Commit 5af42be

Browse files
committed
Fixed Crash when the scope string is NSNull
1 parent 190223f commit 5af42be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NXOAuth2Client.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'NXOAuth2Client'
3-
s.version = '1.2.3'
3+
s.version = '1.2.4'
44
s.license = {
55
:type => 'BSD',
66
:text => <<-LICENSETEXT

Sources/OAuth2Client/NXOAuth2AccessToken.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ + (id)tokenWithResponseBody:(NSString *)theResponseBody tokenType:(NSString *)to
6262
}
6363

6464
NSSet *scope = nil;
65-
if (scopeString) {
65+
if (scopeString && ![scopeString isEqual:[NSNull null]]) {
6666
scope = [NSSet setWithArray:[scopeString componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
6767
}
6868

0 commit comments

Comments
 (0)