(Wallet) Check if asset array contains null values (#27067)

Check null values in asset array
This commit is contained in:
Simone Arpe
2024-12-19 14:42:34 +01:00
committed by GitHub
parent f1de7e6095
commit 7dbdad11ab
@@ -30,7 +30,10 @@ public class AssetsPricesHelper {
new ArrayList<AsyncUtils.GetPriceResponseContext>();
for (BlockchainToken asset : assets) {
String assetSymbolLower = asset.symbol.toLowerCase(Locale.getDefault());
if (asset == null || asset.symbol == null) {
continue;
}
String assetSymbolLower = asset.symbol.toLowerCase(Locale.ENGLISH);
String[] fromAssets = new String[] {assetSymbolLower};
String[] toAssets = new String[] {"usd"};