Revision: 5038
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5038&view=rev
Author:   hofman
Date:     2008-12-09 21:30:30 +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 21:28:43 UTC (rev 5037)
+++ trunk/SKTemplateParser.m    2008-12-09 21:30:30 UTC (rev 5038)
@@ -570,7 +570,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

Reply via email to