File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ ReferralProgramInfo::ReferralProgramInfo(telegram_api::object_ptr<telegram_api::
16
16
if (program != nullptr ) {
17
17
parameters_ = ReferralProgramParameters (program->commission_permille_ , program->duration_months_ );
18
18
end_date_ = program->end_date_ ;
19
- if (program->daily_revenue_per_user_ ->get_id () != telegram_api::starsAmount::ID) {
20
- LOG (ERROR) << " Receive " << to_string (program);
21
- } else {
22
- daily_star_amount_ =
23
- StarAmount (telegram_api::move_object_as<telegram_api::starsAmount>(program->daily_revenue_per_user_ ), true );
19
+ if (program->daily_revenue_per_user_ != nullptr ) {
20
+ if (program->daily_revenue_per_user_ ->get_id () != telegram_api::starsAmount::ID) {
21
+ LOG (ERROR) << " Receive " << to_string (program);
22
+ } else {
23
+ daily_star_amount_ =
24
+ StarAmount (telegram_api::move_object_as<telegram_api::starsAmount>(program->daily_revenue_per_user_ ), true );
25
+ }
24
26
}
25
27
}
26
28
}
You can’t perform that action at this time.
0 commit comments