<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Android SDK crash in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186603#M7926</link>
    <description>&lt;P&gt;Could you tell us what version of what SDK you're using?&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;think based on the stack that you're using some version of the Core API (v1) Android SDK, but it would help to know exactly which version.&lt;/P&gt;
&lt;P&gt;In the current code for onNewIntent,&amp;nbsp;this is the only call I see to getPath(), which sure looks like it's guarded against null pointer exceptions.&lt;/P&gt;
&lt;PRE&gt; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // Web auth.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Uri uri = intent.getData();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (uri != null) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String path = uri.getPath();&lt;/PRE&gt;
&lt;P&gt;One quick way to check which version you're using is to look at SdkVersion.java.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT:&amp;nbsp;&lt;/STRONG&gt;If using&amp;nbsp;a JAR file,&amp;nbsp;the version number should be in the name of the file.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2016 00:18:12 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2016-06-01T00:18:12Z</dc:date>
    <item>
      <title>Android SDK crash</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186602#M7925</link>
      <description>&lt;DIV&gt;&lt;SPAN class="AAXX1KD-Qg-b"&gt;Hi. I have implemented Dropbox API in my android app.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class="AAXX1KD-Qg-b"&gt;After released the app to public, I got a number of crash report from the Dropbox SDK. No sure what is the root cause.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class="AAXX1KD-Qg-b"&gt;The issue seems to happen on a varieties of devices. Please help! Thank you so much.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class="AAXX1KD-Qg-b"&gt;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/kljbuJ_9jRn_bq4KWqXDXQ.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;SPAN class="AAXX1KD-Qg-b"&gt;java.lang.NullPointerException&lt;/SPAN&gt;: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-b"&gt;at com.dropbox.client2.android.AuthActivity.onNewIntent(Unknown Source)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1218)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1230)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2683)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.ActivityThread.performNewIntents(ActivityThread.java:2695)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2704)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.ActivityThread.access$1600(ActivityThread.java:178)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1542)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.os.Handler.dispatchMessage(Handler.java:111)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.os.Looper.loop(Looper.java:194)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at android.app.ActivityThread.main(ActivityThread.java:5643)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at java.lang.reflect.Method.invoke(Native Method)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at java.lang.reflect.Method.invoke(Method.java:372)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)&lt;/DIV&gt;
&lt;DIV class="AAXX1KD-Qg-a"&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186602#M7925</guid>
      <dc:creator>Hongbin L.</dc:creator>
      <dc:date>2019-05-29T09:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK crash</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186603#M7926</link>
      <description>&lt;P&gt;Could you tell us what version of what SDK you're using?&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;think based on the stack that you're using some version of the Core API (v1) Android SDK, but it would help to know exactly which version.&lt;/P&gt;
&lt;P&gt;In the current code for onNewIntent,&amp;nbsp;this is the only call I see to getPath(), which sure looks like it's guarded against null pointer exceptions.&lt;/P&gt;
&lt;PRE&gt; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // Web auth.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Uri uri = intent.getData();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (uri != null) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String path = uri.getPath();&lt;/PRE&gt;
&lt;P&gt;One quick way to check which version you're using is to look at SdkVersion.java.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT:&amp;nbsp;&lt;/STRONG&gt;If using&amp;nbsp;a JAR file,&amp;nbsp;the version number should be in the name of the file.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 00:18:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186603#M7926</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-06-01T00:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK crash</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186604#M7927</link>
      <description>&lt;P&gt;SDK version is 1.5.3.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 00:23:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186604#M7927</guid>
      <dc:creator>Hongbin L.</dc:creator>
      <dc:date>2016-06-01T00:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK crash</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186605#M7928</link>
      <description>&lt;P&gt;Hmm. The code in that version looks identical, and there are no other calls to getPath().&lt;/P&gt;
&lt;P&gt;Is there any chance you modified the code in AuthActivity.java? I'm afraid I don't have any other ideas.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 00:27:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-SDK-crash/m-p/186605#M7928</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-06-01T00:27:52Z</dc:date>
    </item>
  </channel>
</rss>

