WPStringUtils methods cause exception if parameter is nil
astralbodies opened this issue · comments
Update method to be safer with a nil parameter.
It's common behavior in Cocoa:
NSString *foo = [NSString stringWithString:nil]; // Crash
IMO, classes should check before calling
I could argue both ways since the method doesn't say it's not nil safe - I guess I'm more accustomed to thing being naturally safe with nils unless I'm initializing.