title: Content Provider | Attempt to invoke virtual method 'android.net.Uri$Builder android.net.Uri.buildUpon()' on a null object reference
body: <p>I am implementing Custom Content Provider and the problem is when i insert any value it gives me exception </p>
  
  <pre><code>Attempt to invoke virtual method 'android.net.Uri$Builder android.net.Uri.buildUpon()' on a null object reference
  </code></pre>
  
  <p>my code for inserting the value is </p>
  
  <pre><code>    public final static Uri uri = "content://com.test.myproject.Models.myProvider/users";
      ContentValues updateValues = new ContentValues(0);
      updateValues.put("name","ali");
      updateValues.put("description","basic user");
      updateValues.put("status",0);
      context.getContentResolver().insert(uri, updateValues);`
  </code></pre>
  
  <p>If you need more info/code them lemme know.
  <br> Kindly help. Thanks in advance</p>