title: Deep link crashes when app is not in background
body: <p>for some reason my deep link keeps crashing every time I click it. and this only happens when my application is not running in the background. it impossible for me to get the error message because it only happens when the app is not running. I really need you guys to help, please. is there a way to solve this issue? keep in mind that I pass some parameters too but I don't think that's an issue because like I said it works fine when the app is running.</p>
  <pre><code> Intent shareIntent = new Intent(Intent.ACTION_SEND);
                                          shareIntent.setType(&quot;text/plain&quot;);
                                          shareIntent.putExtra(Intent.EXTRA_TEXT,&quot;www.tes.post/vp/&quot;+strArray+&quot;/&quot;+userid);
                                          shareIntent.putExtra(Intent.EXTRA_SUBJECT, &quot;tes&quot;);
                                          startActivity(Intent.createChooser(shareIntent, &quot;Share via&quot;));
  </code></pre>
  <p>Below is the code of how I get this parameters¨.</p>
  <pre><code>   Uri cheint = getIntent().getData();
      if (cheint!=null)
      {
          Uri data = getIntent().getData();
          List&lt;String&gt; p = data.getPathSegments();
  
          userid = p.get(2);
          postkey = p.get(1).replaceAll(&quot;_&quot;, &quot; &quot;);
          type = p.get(0);
      }
  </code></pre>