diff --git a/modules/net/dap_chain_ledger.c b/modules/net/dap_chain_ledger.c index 7c449e82744c8dbb0ccbd82c75f56f208253006e..3b5fbe1e25f2745708280c760eb613a10f5c704d 100644 --- a/modules/net/dap_chain_ledger.c +++ b/modules/net/dap_chain_ledger.c @@ -4345,9 +4345,11 @@ int dap_ledger_tx_add(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx, dap_ha return l_ret_check; } debug_if(s_debug_more, L_DEBUG, "dap_ledger_tx_add() check passed for tx %s", l_tx_hash_str); - dap_strncpy(a_datum_index_data->token_ticker, l_main_token_ticker, DAP_CHAIN_TICKER_SIZE_MAX); - a_datum_index_data->action = l_action; - a_datum_index_data->uid = l_tag; + if ( a_datum_index_data != NULL){ + dap_strncpy(a_datum_index_data->token_ticker, l_main_token_ticker, DAP_CHAIN_TICKER_SIZE_MAX); + a_datum_index_data->action = l_action; + a_datum_index_data->uid = l_tag; + } // Mark 'out' items in cache if they were used & delete previous transactions from cache if it need // find all bound pairs 'in' and 'out' size_t l_outs_used = dap_list_length(l_list_bound_items);