[Soot-list] RetriveActiveBody()

Saswat Anand saswat at cc.gatech.edu
Wed Oct 27 09:26:38 EDT 2004


in retrieveActiveBody() of SootMethod class, I see:

if(! hasActiveBody() ){
    setActiveBody( this.getBodyFromMethodSource("jb") );
    ms = null;
}

I think assigning null to ms above is buggy. Because if I do
retrieveActiveBody(), releaseActiveBody(), retrieveActiveBody() in the
sequence I get a null pointer exception in
SootMethod.getBodyFromMethodSource. Will it be ok to remove that line?

Thanks
Saswat



More information about the Soot-list mailing list