Revision: 5037
http://skim-app.svn.sourceforge.net/skim-app/?rev=5037&view=rev
Author: hofman
Date: 2008-12-09 21:28:43 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
make sure the keypath for a tag is not nil, as we use it as a key
Modified Paths:
--------------
trunk/SKTemplateParser.m
Modified: trunk/SKTemplateParser.m
===================================================================
--- trunk/SKTemplateParser.m 2008-12-09 17:23:28 UTC (rev 5036)
+++ trunk/SKTemplateParser.m 2008-12-09 21:28:43 UTC (rev 5037)
@@ -291,7 +291,8 @@
// scan the key, must be letters and dots. We don't allow extra
spaces
// scanUpToCharactersFromSet is used for efficiency instead of
scanCharactersFromSet
- [scanner scanUpToCharactersFromSet:invertedKeyCharacterSet
intoString:&tag];
+ if ([scanner scanUpToCharactersFromSet:invertedKeyCharacterSet
intoString:&tag] == NO)
+ tag = @"";
if ([scanner scanString:VALUE_TAG_CLOSE_DELIM intoString:nil]) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit