Skip to content

NPE due to MAMMediaRecorder not overriding MediaRecorder(Context context) constructor #309

@paul-turner

Description

@paul-turner

Summary

Seeing crashes on devices with Android 12+ due to intune not overriding all the constructors in their MAMMediaRecorder class.

Details

We use the "new" (has been around since Android 12/api 31), constructor that requires a context object on the MediaRecorder class. It appears that MAMMediaRecorder does not have an override and therefore does not initialize the MediaRecorderBehavior instance, and on subsequent calls to setOutputFile throw a fatal null pointer error.

Let me know if you need more information but I think if what we've seen in MAMMediaRecorder is correct that should be enough for a fix.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions