[Soot-list] Newbie question regarding ExceptionalUnitGraph

Alvin Yan feiya200 at cs.uregina.ca
Fri Jan 11 17:33:10 EST 2008


Yes Scene.v().loadNecessaryClasses(); did the trick. I apologize that I 
didn't google it first. Thank you Michael!





> This is undoubtedly one of Soot's famous classloading "bugs". I say bug in
> quotes because it isn't a bug at all, but it is a common question on this
> list.
>
> Before you build your graph, you need to make sure you make this call:
>
> Scene.v().loadNecessaryClasses();
>
> Which will load all necessary classes, as the method suggests.
>
> And, as yet another reminder to all list participants: I searched google
> for the terms "Soot NullPointerException ClassFormatError" and found a
> previous discussion on this exact problem (first hit), as well as the
> exact solution I just gave.
>
> As our local due-diligence zealot Chris would remind us, it is always good
> practice to try and see if the answer to our problem has already been
> answered before.
>
> Cheers, and happy weekend!
>
> Michael Batchelder
> 


More information about the Soot-list mailing list