Skip to content

Commit

Permalink
fix: turn off the assert of the decodedString #23
Browse files Browse the repository at this point in the history
  • Loading branch information
tzmax committed Jan 15, 2023
1 parent 72568d7 commit 445c7e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion V2RayX/ConfigImporter.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ + (NSString* _Nonnull)decodeBase64String:(NSString*)encoded {
@try {
NSData* decodedData = [[NSData alloc] initWithBase64EncodedString:fixed options:NSDataBase64DecodingIgnoreUnknownCharacters];
NSString* decodedString = [[NSString alloc] initWithData:decodedData encoding:NSUTF8StringEncoding];
assert(decodedString != nil);
// assert(decodedString != nil);
if (decodedString == nil) {
return @"";
}
return decodedString;
} @catch (NSException *exception) {
return @"";
Expand Down

0 comments on commit 445c7e3

Please sign in to comment.