You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.RuntimeException: An error occurred while processing <com.google.android.gms.tagmanager.cr$d: com.google.android.gms.tagmanager.cr$d a(com.google.android.gms.tagmanager.cr$a)> in callgraph
at soot.jimple.spark.solver.OnFlyCallGraph.processReachables(OnFlyCallGraph.java:122)
at soot.jimple.spark.solver.OnFlyCallGraph.build(OnFlyCallGraph.java:106)
at soot.jimple.spark.builder.ContextInsensitiveBuilder.build(ContextInsensitiveBuilder.java:94)
at soot.jimple.spark.SparkTransformer.internalTransform(SparkTransformer.java:101)
at soot.SceneTransformer.transform(SceneTransformer.java:36)
at soot.Transform.apply(Transform.java:105)
at soot.RadioScenePack.internalApply(RadioScenePack.java:64)
at soot.jimple.toolkits.callgraph.CallGraphPack.internalApply(CallGraphPack.java:61)
at soot.Pack.apply(Pack.java:118)
at soot.PackManager.runWholeProgramPacks(PackManager.java:619)
at soot.PackManager.runPacksNormally(PackManager.java:500)
at soot.PackManager.runPacks(PackManager.java:425)
at org.example.Main.main(Main.java:36)
Caused by: java.lang.NullPointerException: Cannot invoke "soot.SootField.getType()" because the return value of "soot.jimple.StaticFieldRef.getField()" is null
at soot.jimple.spark.builder.MethodNodeFactory.caseStaticFieldRef(MethodNodeFactory.java:401)
at soot.jimple.StaticFieldRef.apply(StaticFieldRef.java:83)
at soot.jimple.spark.builder.MethodNodeFactory$1.caseAssignStmt(MethodNodeFactory.java:162)
at soot.jimple.internal.JAssignStmt.apply(JAssignStmt.java:217)
at soot.jimple.spark.builder.MethodNodeFactory.handleStmt(MethodNodeFactory.java:150)
at soot.jimple.spark.pag.MethodPAG.buildNormal(MethodPAG.java:224)
at soot.jimple.spark.pag.MethodPAG.build(MethodPAG.java:186)
at soot.jimple.spark.solver.OnFlyCallGraph.processReachables(OnFlyCallGraph.java:116)
... 12 more
In soot.jimple.spark.builder.MethodNodeFactory.caseStaticFieldRef, I added an if statement, if getField() is null then trying to getFieldRef().
modification in soot.jimple.spark.builder.MethodNodeFactory.caseStaticFieldRef:
@Override
final public void caseStaticFieldRef(StaticFieldRef sfr) {
if (sfr.getField() != null) {
setResult(pag.makeGlobalVarNode(sfr.getField(), sfr.getField().getType()));
} else if (sfr.getFieldRef() != null) {
setResult(pag.makeGlobalVarNode(sfr.getFieldRef(), sfr.getFieldRef().type()));
}
}
The text was updated successfully, but these errors were encountered:
When soot.jimple.StaticFieldRef.getField() is null, trying to getType by soot.jimple.StaticFieldRef.getField().getType().
apk file:
WildBlackJack_v1.3_13_1234567892.zip
gradle:
java code:
debug information:
In soot.jimple.spark.builder.MethodNodeFactory.caseStaticFieldRef, I added an if statement, if getField() is null then trying to getFieldRef().
modification in soot.jimple.spark.builder.MethodNodeFactory.caseStaticFieldRef:
The text was updated successfully, but these errors were encountered: