Skip to content

Commit

Permalink
Fix nullability of forwardInvocation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Jul 10, 2018
1 parent 8707e23 commit 3e09470
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/ONOXMLDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,10 @@ - (nullable NSMethodSignature *)methodSignatureForSelector:(SEL)selector {
}

- (void)forwardInvocation:(NSInvocation *)invocation {
[invocation invokeWithTarget:[self stringValue]];
NSString *stringValue = self.stringValue;
if (stringValue) {
[invocation invokeWithTarget:stringValue];
}
}

#pragma mark - NSCopying
Expand Down

0 comments on commit 3e09470

Please sign in to comment.