Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Url may be `undefined` value, we need to consider that.
  • Loading branch information
pavelvasev committed Mar 30, 2015
1 parent 281bf5b commit 22ce160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtcore.js
Expand Up @@ -223,7 +223,7 @@ Qt.createComponent = function(name, executionContext)
// http://doc.qt.io/qt-5/qml-qtqml-qt.html#resolvedUrl-method
Qt.resolvedUrl = function(url)
{
if (!url.substr) // url is not a string object
if (!url || !url.substr) // url is not a string object
return url;

if (url == "" || url.indexOf("://") != -1 || url.indexOf("/") == 0)
Expand Down

0 comments on commit 22ce160

Please sign in to comment.