groue / GRMustache

Flexible and production-ready Mustache templates for MacOS Cocoa and iOS
http://mustache.github.com/
MIT License
1.44k stars 190 forks source link

Passing nil string to renderObject:fromString:error: causes EXC_BAD_ACCESS #56

Closed coduggan closed 11 years ago

coduggan commented 11 years ago

Perhaps it should check for nil string, and if so, set the error object passed in and return before trying to parse and crashing.

groue commented 11 years ago

Thanks a lot @cncool

Version 6.7.5 fixes your issue: an NSError of code GRMustacheErrorDomain and code GRMustacheErrorCodeParseError is returned when the template string is nil.