Click here to Skip to main content
16,016,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
error:
09-03 12:24:31.920 20050-20050/com.college.dypiet E/AndroidRuntime: FATAL EXCEPTION: main
                                                                    Process: com.college.dypiet, PID: 20050
                                                                    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
                                                                        at android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:583)
                                                                        at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:557)
                                                                        at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:399)
                                                                        at com.nononsenseapps.filepicker.FilePickerFragment.toUri(FilePickerFragment.java:201)
                                                                        at com.nononsenseapps.filepicker.FilePickerFragment.toUri(FilePickerFragment.java:28)
                                                                        at com.nononsenseapps.filepicker.AbstractFilePickerFragment.onClickOk(AbstractFilePickerFragment.java:312)
                                                                        at com.nononsenseapps.filepicker.AbstractFilePickerFragment$2.onClick(AbstractFilePickerFragment.java:196)
                                                                        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)


What I have tried:

I browsed google for it but couldnt find any suitable solution for this problem
Posted
Comments
David Crow 3-Sep-17 15:49pm    
So have you looked at line 583 of FileProvider.java? You are referencing a null object there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900