<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><br>This is very strange. Your APK file contains classes that implement interfaces which are not actually interfaces, but proper classes. This should normally not be possible. Nevertheless, I have patched Soot to handle such cases. The code is on Github, a new nightly build will be available tomorrow.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>  Steven<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> soot-list-bounces@CS.McGill</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>.CA [mailto:soot-list-bounces@CS.McGill.CA] <b>Im Auftrag von </b>R.F.<br><b>Gesendet:</b> Dienstag, 4. August 2015 16:41<br><b>An:</b> soot-list@CS.McGill.CA<br><b>Betreff:</b> [Soot-list] Null Pointer Exception when Creating Dummy Main Method for APK<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=MsoNormal>Hi,<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>First of all, please forgive me for reporting so many issues with FlowDroid, since I am studying and testing it heavily recently as a newbie. To Steven and all the contributors of Soot, I cannot be more grateful. I'm glad to see Soot keep getting better and better.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'>I was analyzing &nbsp;another APK using the given test class of FlowDroid.</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal><a href="https://drive.google.com/file/d/0B0ceYAgUVEZbZmVmbnZWTEY5T0E/view?usp=sharing">https://drive.google.com/file/d/0B0ceYAgUVEZbZmVmbnZWTEY5T0E/view?usp=sharing</a><o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'>However, the following exception is thrown:</span><o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span style='font-size:9.5pt'>Exception in thread &quot;main&quot; java.lang.NullPointerException</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.Hierarchy.&lt;init&gt;(Hierarchy.java:128)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.Scene.getActiveHierarchy(Scene.java:957)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.entryPointCreators.AndroidEntryPointCreator.getComponentType(AndroidEntryPointCreator.java:448)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.entryPointCreators.AndroidEntryPointCreator.createDummyMainInternal(AndroidEntryPointCreator.java:180)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.entryPointCreators.BaseEntryPointCreator.createDummyMainInternal(BaseEntryPointCreator.java:122)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.entryPointCreators.BaseEntryPointCreator.createDummyMain(BaseEntryPointCreator.java:107)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.android.SetupApplication.createMainMethod(SetupApplication.java:598)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.android.SetupApplication.calculateCallbackMethods(SetupApplication.java:447)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.android.SetupApplication.calculateSourcesSinksEntrypoints(SetupApplication.java:378)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.android.SetupApplication.calculateSourcesSinksEntrypoints(SetupApplication.java:344)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.android.TestApps.Test.runAnalysis(Test.java:521)</span><o:p></o:p></p></blockquote><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal><span class=apple-tab-span><span style='font-size:9.5pt'>     </span></span><span style='font-size:9.5pt'>at soot.jimple.infoflow.android.TestApps.Test.main(Test.java:215)</span><o:p></o:p></p></blockquote><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p>&nbsp;</o:p></span></p></div></blockquote><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'>My setup is&nbsp;the latest source code on the develop branch (or default branch on GitHub) of Jasmin (<a href="https://github.com/Sable/jasmin" target="_blank">https://github.com/Sable/jasmin</a>), Heros (<a href="https://github.com/Sable/heros" target="_blank">https://github.com/Sable/heros</a>), Soot (<a href="https://github.com/Sable/soot" target="_blank">https://github.com/Sable/soot</a>), Soot Infoflow (<a href="https://github.com/secure-software-engineering/soot-infoflow" target="_blank">https://github.com/secure-software-engineering/soot-infoflow</a>) and Soot Infoflow Android (<a href="https://github.com/secure-software-engineering/soot-infoflow-android" target="_blank">https://github.com/secure-software-engineering/soot-infoflow-android</a>). My arguments are &quot;/PATH/TO/APK /PATH/TO/android-platforms&quot;. The &quot;android-platform&quot; directory is also a clone of&nbsp;<a href="https://github.com/Sable/android-platforms" target="_blank">https://github.com/Sable/android-platforms</a>. The JRE used by Eclipse is Oracle Java 7 on Ubuntu 15.04 64-bit (/usr/lib/jvm/java-7-oracle).<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'>Can you reproduce the issue?<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'>Thanks so much.</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Best Regards,<o:p></o:p></p></div><div><p class=MsoNormal>R.F.&nbsp;<o:p></o:p></p></div></div></div></body></html>