incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: Re-fix CB-347 - don't apply .plist fix if the key does not exist
Date Tue, 17 Apr 2012 22:02:08 GMT
Updated Branches:
  refs/heads/master 590d087f2 -> e9f076014


Re-fix CB-347 - don't apply .plist fix if the key does not exist


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/e9f07601
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/e9f07601
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/e9f07601

Branch: refs/heads/master
Commit: e9f0760143840e4c145779d3f5c57a05025fcd34
Parents: 590d087
Author: Shazron Abdullah <shazron@apache.org>
Authored: Tue Apr 17 15:01:37 2012 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Tue Apr 17 15:01:58 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVLocalStorage.m |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/e9f07601/CordovaLib/Classes/CDVLocalStorage.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVLocalStorage.m b/CordovaLib/Classes/CDVLocalStorage.m
index 628bb27..0fe9dc6 100644
--- a/CordovaLib/Classes/CDVLocalStorage.m
+++ b/CordovaLib/Classes/CDVLocalStorage.m
@@ -265,8 +265,8 @@
     for (NSString* key in keysToCheck) 
     {
         NSString* value = [appPlistDict objectForKey:key];
-        // verify path is in app bundle, if not - fix
-        if (![value hasPrefix:bundlePath]) 
+        // verify key exists, and path is in app bundle, if not - fix
+        if (value != nil && ![value hasPrefix:bundlePath]) 
         {
             // the pathSuffix to use may be wrong - OTA upgrades from < 5.1 to 5.1 do
keep the old path Library/WebKit, 
             // while Xcode synced ones do change the storage location to Library/Caches


Mime
View raw message