You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Carlos Santana (JIRA)" <ji...@apache.org> on 2016/03/10 01:06:40 UTC
[jira] [Created] (CB-10828) [iOS] TypeError: Cannot read property
'indexOf' of null when allow-navigation using scheme:*
Carlos Santana created CB-10828:
-----------------------------------
Summary: [iOS] TypeError: Cannot read property 'indexOf' of null when allow-navigation using scheme:*
Key: CB-10828
URL: https://issues.apache.org/jira/browse/CB-10828
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 4.1.0
Reporter: Carlos Santana
cordova create test
cd test
cordova platform ios@4
edit config.xml and add schem:* for <allow-navigation>
<allow-navigation href="cdvfile:*" />
$ cordova prepare -d
Executing "before_prepare" hook for all plugins.
Searching PlatformJson files for differences between project vs. platform installed plugins
No differences found between project and ios platform. Continuing...
Generating config.xml from defaults for platform "ios"
Error: TypeError: Cannot read property 'indexOf' of null
at parseWhitelistUrlForATS (/Users/csantana23/foo/test/platforms/ios/cordova/lib/prepare.js:448:26)
at /Users/csantana23/foo/test/platforms/ios/cordova/lib/prepare.js:400:19
at Array.reduce (native)
at processAccessAndAllowNavigationEntries (/Users/csantana23/foo/test/platforms/ios/cordova/lib/prepare.js:399:6)
at writeATSEntries (/Users/csantana23/foo/test/platforms/ios/cordova/lib/prepare.js:488:14)
at updateProject (/Users/csantana23/foo/test/platforms/ios/cordova/lib/prepare.js:148:15)
at /Users/csantana23/foo/test/platforms/ios/cordova/lib/prepare.js:47:16
at _fulfilled (/Users/csantana23/foo/test/platforms/ios/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/Users/csantana23/foo/test/platforms/ios/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/Users/csantana23/foo/test/platforms/ios/cordova/node_modules/q/q.js:749:13)
~/foo/test
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org