Skip to content

Commit

Permalink
Fixes a null pointer exception
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vamshi-dhulipala committed Jan 12, 2024
1 parent c3c0c4b commit fbca58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litr-demo/src/main/res/layout/fragment_transcode_video_gl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"/>

<include layout="@layout/section_transformation_progress"
android:id="@+id/section_transformation_progress"
Expand Down Expand Up @@ -117,4 +117,4 @@

</androidx.core.widget.NestedScrollView>

</layout>
</layout>

0 comments on commit fbca58f

Please sign in to comment.