Sitelet https://github.com/JackyAndroid/AndroidChromium/issues/34
Skip to content

App crashes on file upload #34

Description

@AviFix

Hi,

If i tray to select a file via html file input then the app crashes with the following error:

05-11 15:41:48.184 11403-11436/org.chromium.chrome.browser E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3 Process: org.chromium.chrome.browser, PID: 11403 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:325) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761) Caused by: 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:561) at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:535) at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:377) at org.chromium.chrome.browser.FileProviderHelper.getContentUriFromFile(FileProviderHelper.java:24) at org.chromium.base.ContentUriUtils.getContentUriFromFile(ContentUriUtils.java:54) at org.chromium.ui.UiUtils.getUriForImageCaptureFile(UiUtils.java:332) at org.chromium.ui.base.SelectFileDialog$GetCameraIntentTask.doInBackground(SelectFileDialog.java:218) at org.chromium.ui.base.SelectFileDialog$GetCameraIntentTask.doInBackground(SelectFileDialog.java:213) at android.os.AsyncTask$2.call(AsyncTask.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)  at java.lang.Thread.run(Thread.java:761) 

Thanks
Avi

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions