So I have the following code below, that for some reason sometimes causes a crash when run:
fun getTransactionTotalForCategoryDayMonthYear( categoryId: In