-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException after Image Capture #46
Comments
All I can guess , it is image path error, you need to double check it is not happening to me either. |
The follwoing code I have written in Java for ImageCropActivity, you can use that if you are using Java, or better to use Already written Kotlin Code import android.content.Context; import com.your_project.R; import com.labters.documentscanner.DocumentScannerView; import kotlin.Unit; public class ImageCropActivity extends AppCompatActivity {
} |
I have the same problem.
|
Below is the Error:
" java.lang.RuntimeException: Unable to start activity ComponentInfo{com.labters.documentscannerandroid/com.labters.documentscannerandroid.ImageCropActivity}: java.lang.NullPointerException: contentResolver!!.openIn…odeStream(this)
} must not be null ".
The application works fine when I select the image from the gallery. But when I use camera to capture, the above error comes up in the console.
is this a known issue?, can anyone help me resolve this?
Thanks
The text was updated successfully, but these errors were encountered: