Fix initial values for HTML Tokens and handle nil-parameter

This commit is contained in:
iska committed 2014-10-30 21:15:12 +01:00
1 parent dd95a639c3
commit e896c1fe0b
4 files changed
+18 -6

No files matched your search

+4 -1
View File
@@ -20,13 +20,16 @@
{
self = [super init];
if (self) {
_characters = [[NSMutableString alloc] initWithString:string];
_characters = [string mutableCopy];
}
return self;
}
- (void)appendString:(NSString *)string
{
if (_characters == nil) {
_characters = [NSMutableString new];
}
[_characters appendString:string];
}