Null pointer in AddEditTransaction