<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:24px"><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5795">Hi there,</font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3"><br></font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5823">Sorry to bother. I encountered an exception during analysis using soot-2.5.0. I was trying to generate control-flow graph and had this exception.</font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3"><br></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5964"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5965">Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5966"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5967"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5968">        </span>at java.lang.String.substring(String.java:1967)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5969"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5970"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5971">        </span>at soot.coffi.CONSTANT_Methodref_info.createJimpleConstantValue(CONSTANT_Methodref_info.java:102)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5972"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5973"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5974">        </span>at soot.coffi.CONSTANT_MethodHandle_info.createJimpleConstantValue(CONSTANT_MethodHandle_info.java:72)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5975"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5976"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5977">        </span>at soot.coffi.CFG.generateJimple(CFG.java:4342)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5978"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5979"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5980">        </span>at soot.coffi.CFG.jimplify(CFG.java:1267)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5981"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5982"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5983">        </span>at soot.coffi.CFG.jimplify(CFG.java:955)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5984"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5985"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5986">        </span>at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:100)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5987"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5988"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5989">        </span>at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:89)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5990"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5991"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5992">        </span>at soot.SootMethod.retrieveActiveBody(SootMethod.java:322)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5993"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5994"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5995">        </span>at soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processNewMethod(OnFlyCallGraphBuilder.java:531)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5996"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5997"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_5998">        </span>at soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processReachables(OnFlyCallGraphBuilder.java:426)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_5999"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6000"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6001">        </span>at soot.jimple.toolkits.callgraph.CallGraphBuilder.build(CallGraphBuilder.java:84)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6002"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6003"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6004">        </span>at soot.jimple.toolkits.callgraph.CHATransformer.internalTransform(CHATransformer.java:43)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6005"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6006"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6007">        </span>at soot.SceneTransformer.transform(SceneTransformer.java:39)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6008"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6009"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6010">        </span>at soot.Transform.apply(Transform.java:89)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6011"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6012"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6013">        </span>at soot.RadioScenePack.internalApply(RadioScenePack.java:57)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6014"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6015"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6016">        </span>at soot.jimple.toolkits.callgraph.CallGraphPack.internalApply(CallGraphPack.java:49)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6017"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6018"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6019">        </span>at soot.Pack.apply(Pack.java:114)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6020"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6021"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6022">        </span>at soot.PackManager.runWholeProgramPacks(PackManager.java:417)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6023"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6024"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6025">        </span>at soot.PackManager.runPacks(PackManager.java:336)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6026"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6027"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6028">        </span>at soot.Main.run(Main.java:198)</font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3"></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6029"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6030"><span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1471030340398_6031">        </span>at soot.Main.main(Main.java:141)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6032"><font size="3"><br id="yui_3_16_0_ym19_1_1471030340398_6033"></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6032"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6168">Seems like the nameAndType string doesn't contain ":" when executing </font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6032"><font size="3"><br></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6032"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6202"><b>String name = nameAndType.substring(0, nameAndType.indexOf(":"));</b><br></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6032"><font size="3"><br></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6032"><font size="3"><br></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1471030340398_6032"><font size="3">So I printed the string out as follows:</font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_5798"><b id="yui_3_16_0_ym19_1_1471030340398_6210">nameAndType: lambda$getHeadlessProperty$0</b></font><br></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3"><br></font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3"><br></font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1471030340398_6166">Could you please help me fix this issue?</font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3"><br></font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3">Thanks,</font></div><div id="yui_3_16_0_ym19_1_1471030340398_3448" dir="ltr"><font size="3">Yue</font></div></div></body></html>