Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d358ab2b332a893a6c73841303fd5d1cbf6b7c0e 1 parent 8747ba4
@shazron shazron authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 CordovaLib/Classes/CDVLocalStorage.m
View
4 CordovaLib/Classes/CDVLocalStorage.m
@@ -265,8 +265,8 @@ + (void) __verifyAndFixDatabaseLocations
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
Please sign in to comment.
Something went wrong with that request. Please try again.