Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12185

problem with messageParts[0] = null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • Windows7 debugging angular2 project in ipad.

    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 or first element is null

      Line:

      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 = [];
      

      I fixed it with a null verification (messageParts[0]==null -> "no message") and now I can see my real error. Here is the difference: ImageLink

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

      P.D: I hope the version is correct. I looked at package.json of weinre (I downloaded it via npm) and it is written:
      "_id": "weinre@2.0.0-pre-I0Z7U9OV",

      Attachments

        Activity

          People

            pmuellr Patrick Mueller
            Kurara Clara
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: