Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message #353

Closed
ericbodden opened this issue Feb 4, 2015 · 1 comment
Closed

Better error message #353

ericbodden opened this issue Feb 4, 2015 · 1 comment

Comments

@ericbodden
Copy link
Member

We should have a better error message for the following issue mentioned on the mailing list.

I forgot add tmpRef to locals ...

body.getLocals().add(tmpRef);

It solve problem! :)

2015-02-02 2:00 GMT+03:00 Roman Petriev vvpiroman@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@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

ericbodden pushed a commit that referenced this issue Apr 10, 2015
ericbodden pushed a commit that referenced this issue Apr 10, 2015
@ericbodden
Copy link
Member Author

Fixed in df80cdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant