fix: add ck_assert_ptr_ne(wallet_ptr, NULL); in test_002InitWallet_0003SetChainIdSuccess
@@ -590,6 +590,8 @@ START_TEST(test_002InitWallet_0003SetChainIdSuccess)
BoatPlatONWallet *wallet_ptr = BoatMalloc(sizeof(BoatPlatONWallet));
BoatPlatONWalletConfig wallet = get_platon_wallet_settings();
+ ck_assert_ptr_ne(wallet_ptr, NULL);
+
/* 1. execute unit test */
rtnVal = BoatEthWalletSetChainId(wallet_ptr, wallet.chain_id);
/* 2. verify test result */
