Permalink
Browse files

fixed *** Terminating app due to uncaught exception 'NSInvalidArgumen…

…tException', reason: 'Cannot substitute a nil substitution dictionary.'
  • Loading branch information...
1 parent 0894c56 commit 03d005036bb6bfa6a7c88d3d3ac7e877d48eea61 @sync sync committed Oct 2, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/machine.m.motemplate
@@ -93,7 +93,7 @@
<$endforeach do2$>
nil];
<$else$>
- NSDictionary *substitutionVariables = nil;
+ NSDictionary *substitutionVariables = [NSDictionary dictionary];
<$endif$>
NSFetchRequest *fetchRequest = [model fetchRequestFromTemplateWithName:@"<$FetchRequest.name$>"
substitutionVariables:substitutionVariables];
@@ -146,7 +146,7 @@
<$endforeach do2$>
nil];
<$else$>
- NSDictionary *substitutionVariables = nil;
+ NSDictionary *substitutionVariables = [NSDictionary dictionary];
<$endif$>
NSFetchRequest *fetchRequest = [model fetchRequestFromTemplateWithName:@"<$FetchRequest.name$>"
substitutionVariables:substitutionVariables];

0 comments on commit 03d0050

Please sign in to comment.