-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: SentryOptions initWithDict return nil for error (#2679)
Changed [SentryOptions initWithDict:error:] to return nil if an error occurs even if no error argument is provided. Before this, it only returned nil if and error argument was provided.
- Loading branch information
Showing
4 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,6 +135,12 @@ - (void)testGetStoreDsnCachesResult | |
XCTAssertTrue([dsn getStoreEndpoint] == [dsn getStoreEndpoint]); | ||
} | ||
|
||
- (void)testInitWithInvalidString | ||
{ | ||
SentryDsn *dsn = [[SentryDsn alloc] initWithString:@"This is invalid DSN" didFailWithError:nil]; | ||
XCTAssertNil(dsn); | ||
} | ||
|
||
- (void)testGetEnvelopeDsnCachesResult | ||
{ | ||
SentryDsn *dsn = [[SentryDsn alloc] initWithString:@"https://username:[email protected]/1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters