Soot Framework Intraprocedural Graph Traverse Giving Exception: Invalid Unit <ol> <li>I am traversing body of methods using soot framework. So, I get a directed graph of the method body, together with other method calls that are inside the body. I want to traverse this new method and so on. Can somebody help with this recursion logic.</li> <li>After writing recursion logic it gives me <code>NoSuchElementException: Invalid unit return</code>.</li> </ol>