cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clara (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-12185) problem with messageParts[0] = null
Date Fri, 25 Nov 2016 09:01:17 GMT

     [ https://issues.apache.org/jira/browse/CB-12185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Clara updated CB-12185:
-----------------------
    Description: 
I had a problem trying to understand why my program is failing. When weinre tries to show
me the error it fails, because MessageParts length is 0

Line:
{code:javascript}
Console.prototype._generic = function(level, messageParts) {
var message, messagePart, parameters, payload, _i, _len;
message = messageParts[0].toString(); <-- length 0 I don't know why but in my case is 0.
parameters = [];
{code}

I fixed it with a null verification and now I can see my real error. Here is the difference:
[ImageLink|https://cdn.pbrd.co/images/1QiBx9nyb.jpg] 

Files where I found the code: *Console.amd.js* and *target-script-min.js*

  was:
I had a problem trying to understand why my program is failing. When weinre tries to show
me the error it fails, because MessageParts length is 0

Line:
{code:javascript}
Console.prototype._generic = function(level, messageParts) {
var message, messagePart, parameters, payload, _i, _len;
message = messageParts[0].toString(); <-- length 0 I don't know why but in my case is 0.
parameters = [];
{code}

I fixed it with a null verification and now I can see my real error. Here is the difference:
[ImageLink|https://cdn.pbrd.co/images/1QiBx9nyb.jpg] 

Files con


> problem with messageParts[0] = null
> -----------------------------------
>
>                 Key: CB-12185
>                 URL: https://issues.apache.org/jira/browse/CB-12185
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: Windows7 debugging angular2 project in ipad.
>            Reporter: Clara
>            Assignee: Patrick Mueller
>              Labels: easyfix
>
> I had a problem trying to understand why my program is failing. When weinre tries to
show me the error it fails, because MessageParts length is 0
> Line:
> {code:javascript}
> Console.prototype._generic = function(level, messageParts) {
> var message, messagePart, parameters, payload, _i, _len;
> message = messageParts[0].toString(); <-- length 0 I don't know why but in my case
is 0.
> parameters = [];
> {code}
> I fixed it with a null verification and now I can see my real error. Here is the difference:
[ImageLink|https://cdn.pbrd.co/images/1QiBx9nyb.jpg] 
> Files where I found the code: *Console.amd.js* and *target-script-min.js*



--
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