Skip to content

Commit d8b9926

Browse files
committed
SDK-562 add reference link. add safety check.
1 parent 92546ca commit d8b9926

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Branch-SDK/Branch-SDK/BNCNetworkInterface.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ + (nullable NSString *)localIPAddress {
115115
+ (NSArray<NSString *> *)allIPAddresses {
116116
NSMutableArray *array = [NSMutableArray new];
117117
for (BNCNetworkInterface *inf in [BNCNetworkInterface currentInterfaces]) {
118-
[array addObject:inf.description];
118+
if (inf.description) {
119+
[array addObject:inf.description];
120+
}
119121
}
120122
return array;
121123
}

Branch-SDK/Branch-SDK/BNCReachability.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ @interface BNCReachability()
2121
@end
2222

2323
// Based on Apple's Reachability Sample
24+
// https://developer.apple.com/library/archive/samplecode/Reachability/Introduction/Intro.html
2425
@implementation BNCReachability
2526

2627
- (instancetype)init {

0 commit comments

Comments
 (0)