question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullPointerException

See original GitHub issue

Fatal Exception: 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(SourceFile:583) at android.support.v4.content.FileProvider.getPathStrategy(SourceFile:557) at android.support.v4.content.FileProvider.getUriForFile(SourceFile:399) at com.kbeanie.multipicker.core.ImagePickerImpl.takePictureWithCamera(SourceFile:144) at com.kbeanie.multipicker.core.ImagePickerImpl.pick(SourceFile:120) at com.kbeanie.multipicker.api.CameraImagePicker.pickImage(SourceFile:74)

On:

cameraImageCaptureHandler = new CameraImagePicker(this); cameraImageCaptureHandler.setImagePickerCallback(this); cameraImageCaptureHandler.shouldGenerateThumbnails(false); cameraImageCaptureHandler.shouldGenerateMetadata(false); cameraPickingPath = cameraImageCaptureHandler.pickImage();

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
guidedwayscommented, Feb 3, 2017

Is the fix included in 1.1.31?

0reactions
nsmiroshcommented, May 8, 2017

I’m seeing this issue still in 1.1.4-beta

Read more comments on GitHub >

github_iconTop Results From Across the Web

NullPointerException (Java Platform SE 7 ) - Oracle Help Center
Thrown when an application attempts to use null in a case where an object is required. These include: ... Applications should throw instances...
Read more >
java - What is a NullPointerException, and how do I fix it?
NullPointerException s are exceptions that occur when you try to use a reference that points to no location in memory ...
Read more >
How to Fix and Avoid NullPointerException in Java - Rollbar
The NullPointerException occurs due to a situation in application code where an uninitialized object is attempted to be accessed or modified.
Read more >
Null Pointer Exception In Java - GeeksforGeeks
NullPointerException is a RuntimeException. In Java, a special null value can be assigned to an object reference. NullPointerException is thrown ...
Read more >
Java NullPointerException - Detect, Fix, and Best Practices
NullPointerException is a runtime exception, so we don't need to catch it in the program. NullPointerException is raised in an application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found