Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

null is not an object on ios/cordova #11213

Open
@gdjennings

Description

@gdjennings

From rootscope.js...

      // Insanity Warning: scope depth-first traversal
      // yes, this code is a bit crazy, but it works and we have tests to prove it!
      // this piece should be kept in sync with the traversal in $digest
      // (though it differs due to having the extra check for $$listenerCount)
      if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||
          (current !== target && current.$$nextSibling)))) {
      while (current !== target && !(next = current.$$nextSibling)) {     //<<<----- current null?
          current = current.$parent;
        }
      }
    }

Under certain circumstances (that I don't yet understand), current is null. Checking for null in the loop gets rid of the error. It may be related to load. I suspect something else bad is happening that is causing this. Apologies for the lack of detail/reproducibility.
I am using Ionic but 1.3.13 of angular.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions