cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Santana (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10828) TypeError: Cannot read property 'indexOf' of null when allow-navigation using scheme:*
Date Thu, 10 Mar 2016 00:31:40 GMT

    [ https://issues.apache.org/jira/browse/CB-10828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15188380#comment-15188380
] 

Carlos Santana commented on CB-10828:
-------------------------------------

Off by one error, classic, we've all done it XD
https://github.com/nodejs/node/commit/8b16ba3bbf381249552c2a038233141e4abbe731

problem with node 5.7.0

closing as invalid

> 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
>              Labels: ios
>
> 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


Mime
View raw message