From 03d005036bb6bfa6a7c88d3d3ac7e877d48eea61 Mon Sep 17 00:00:00 2001 From: Anthony Mittaz Date: Sat, 2 Oct 2010 14:56:04 +1000 Subject: [PATCH] fixed *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot substitute a nil substitution dictionary.' --- templates/machine.m.motemplate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 239e4526..3776bf34 100644 --- a/templates/machine.m.motemplate +++ b/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];