Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Assert against nil content block when appropriate.

  • Loading branch information...
commit badc8ec5a84c1a6416c3c75249490f218e558fbe 1 parent 23b7504
Mike Abdullah mikeabdullah authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  KSHTMLWriter.m
2  KSHTMLWriter.m
View
@@ -227,6 +227,8 @@ - (void)startAnchorElementWithHref:(NSString *)href title:(NSString *)titleStrin
- (void)writeAnchorElementWithHref:(NSString *)href title:(NSString *)titleString target:(NSString *)targetString rel:(NSString *)relString content:(void (^)(void))content;
{
+ NSParameterAssert(content);
+
[self startAnchorElementWithHref:href title:titleString target:targetString rel:relString];
content();
[self endElement];
Please sign in to comment.
Something went wrong with that request. Please try again.