From fbca58ff3268df52c956952e740e3137baab91bb Mon Sep 17 00:00:00 2001 From: vamshi-dhulipala Date: Fri, 12 Jan 2024 10:58:00 -0800 Subject: [PATCH] Fixes a null pointer exception Update the logic in fragment_transcode_video_gl.xml to use a default value of false for the data binding variable 'enableNativeMuxer' whenever it is null. --- litr-demo/src/main/res/layout/fragment_transcode_video_gl.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litr-demo/src/main/res/layout/fragment_transcode_video_gl.xml b/litr-demo/src/main/res/layout/fragment_transcode_video_gl.xml index 775b1367..961e9543 100644 --- a/litr-demo/src/main/res/layout/fragment_transcode_video_gl.xml +++ b/litr-demo/src/main/res/layout/fragment_transcode_video_gl.xml @@ -87,7 +87,7 @@ android:text="@string/transcode" android:enabled="@{sourceMedia != null && targetMedia != null && targetMedia.getIncludedTrackCount() > 0 && (transformationState.state != transformationState.STATE_RUNNING)}" android:padding="@dimen/cell_padding" - android:onClick="@{() -> transformationPresenter.startTransformation(sourceMedia, targetMedia, trimConfig, audioVolumeConfig, transformationState, enableNativeMuxer)}"/> + android:onClick="@{() -> transformationPresenter.startTransformation(sourceMedia, targetMedia, trimConfig, audioVolumeConfig, transformationState, enableNativeMuxer == null ? false : enableNativeMuxer)}"/> - \ No newline at end of file +