5 Replies Latest reply on Nov 20, 2014 2:52 AM by vivekuma

    Deleting parent symbol after deleting child symbol throws "Uncaught TypeError: Cannot read property 'id' of null " in 2014.1

    Blokeish Level 1

      If a child symbol is deleted first and then the parent it throws the error "Uncaught TypeError: Cannot read property 'id' of null". Its also strange that when listing all the child symbols on the stage it also lists the grand children. These codes worked perfectly with the previous versions but not with 2014.1.

       

      The code used to print all stage symbols:

      var chldns = sym.getComposition().getStage().getChildSymbols();

      for(i=0; i<chldns.length; i++){

            console.log('->'+chldns[i].name);

      }

       

      Can someone tell me if this is a bug or is there a new way of doing these?

       

      Thank you.