title: FileProvider.getUriForFile returns null object reference
body: <p>FileProvider.getUriForFile is returning a nullobject reference and I have no idea why. This worked before. The following error is what I get. I also added my code below the error.</p>
  
  <pre><code>Process: com.example.joche.mywarranty, PID: 2522
                                                                          java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
                                                                              at android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:584)
                                                                              at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:558)
                                                                              at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:400)
                                                                              at com.example.joche.mywarranty.InputScreen$2.onClick(InputScreen.java:74)
                                                                              at android.view.View.performClick(View.java:5610)
                                                                              at android.view.View$PerformClick.run(View.java:22265)
                                                                              at android.os.Handler.handleCallback(Handler.java:751)
                                                                              at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                              at android.os.Looper.loop(Looper.java:154)
                                                                              at android.app.ActivityThread.main(ActivityThread.java:6077)
                                                                              at java.lang.reflect.Method.invoke(Native Method)
                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>imageUri = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".my.package.inputName.provider", new File(fileinputName));
  </code></pre>
  
  <p>AndroidManifest.xml file:</p>
  
  <pre><code>&lt;provider
          android:name=".GenericFileProvider"
          android:authorities="${applicationId}.my.package.name.provider"
          android:exported="false"
          android:grantUriPermissions="true"&gt;
          &lt;meta-data
              android:name="android.support.FILE_PROVIDER_PATHS"
              android:resource="@xml/provider_paths"/&gt;
      &lt;/provider&gt;
  </code></pre>
  
  <p>And ofcours the xml file with the path:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;paths xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;external-path name="my_images" path="."/&gt;&lt;/paths&gt;
  </code></pre>