Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit 34cb424

Browse files
committed
Do not throw an exception on empty strings
1 parent 4f2f43f commit 34cb424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMDQueryStringSerialization/CMDQueryStringSerialization.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ - (NSString *)cmd_stringByAddingEscapes {
7373

7474

7575
- (NSString *)cmd_stringByRemovingEscapes {
76-
return [self stringByRemovingPercentEncoding];
76+
return [self stringByRemovingPercentEncoding] ?: @"";
7777
}
7878

7979

0 commit comments

Comments
 (0)