Permalink
Browse files

Assert against nil content block when appropriate.

  • Loading branch information...
1 parent 23b7504 commit badc8ec5a84c1a6416c3c75249490f218e558fbe @mikeabdullah mikeabdullah committed Mar 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 KSHTMLWriter.m
View
2 KSHTMLWriter.m
@@ -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];

0 comments on commit badc8ec

Please sign in to comment.