[Soot-list] Soot transformations.

Bodden, Eric eric.bodden at sit.fraunhofer.de
Wed Feb 4 03:45:22 EST 2015


Thanks for the note.

I opened a bug to generate a better error message in the future:
https://github.com/Sable/soot/issues/353

Cheers,
Eric

> On 04.02.2015, at 09:34, Roman Petriev <vvpiroman at gmail.com> wrote:
> 
> I forgot add tmpRef to locals ...
> 
> body.getLocals().add(tmpRef);
> 
> It solve problem! :)
> 
> 2015-02-02 2:00 GMT+03:00 Roman Petriev <vvpiroman at gmail.com>:
> No one of parameters is null ...
> Stack trace:
> java.lang.NullPointerException
>         at soot.AbstractValueBox.setValue(AbstractValueBox.java:43)
>         at soot.Body.importBodyContentsFrom(Body.java:225)
>         at soot.jimple.JimpleBody.clone(JimpleBody.java:90)
>         at soot.PackManager.convertJimpleBodyToBaf(PackManager.java:967)
>         at soot.PackManager.runBodyPacks(PackManager.java:929)
>         at soot.PackManager.runBodyPacks(PackManager.java:606)
>         at soot.PackManager.runBodyPacks(PackManager.java:507)
>         at soot.PackManager.runPacksNormally(PackManager.java:484)
>         at soot.PackManager.runPacks(PackManager.java:391)
>         at soot.Main.run(Main.java:244)
>         at soot.Main.main(Main.java:152)
>         at soot.jbco.Main.main(Main.java:274)
> 
> 
> 
> 2015-02-02 1:09 GMT+03:00 Bodden, Eric <eric.bodden at sit.fraunhofer.de>:
> Hmmm, I can't see anything immediately wrong, but...
> 
> > Actually Result:
> > java.lang.NullPointerException at line in my transformation:
> > units.insertAfter(Jimple.v().newInvokeStmt(Jimple.v().newVirtualInvokeExpr(tmpRef, toCall.makeRef(), intLocal)), as3);
> 
> ... at this line of yours, which pointer exactly is null? Did you check with a debugger?
> 
> Cheers,
> Eric
> 
> 

--
Prof. Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC SPRIDE
Tel: +49 6151 16-75422    Fax: +49 6151 869-127
Room B5.11, Fraunhofer SIT, Rheinstraße 75, 64295 Darmstadt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150204/57b0dbc3/attachment-0001.bin 


More information about the Soot-list mailing list