Hello,
When importing a Flex Query generated via IBKR, the following import error occurs for a specific asset:
[Cannot invoke “String.equals(Object)” because the return value of “name.abuchen.portfolio.model.Security.getCurrencyCode()” is null]
This is Deere & Company (DE) from the S&P 500.
The error can be resolved manually by editing the .xml file. The affected lines are those belonging to Deere:
For example:
<SecurityInfo currency="USD" assetCategory="STK" symbol="DE" description="DEERE & CO" conid="6393" securityID="US2441991054" securityIDType="ISIN" cusip="244199105" isin="US2441991054" figi="BBG000BH1NH9" listingExchange="NYSE" multiplier="1" expiry="" putCall="" />
The error occurs when reading the lines [symbol=“DE”]
Solution:
Find all [symbol=“DE”] that belong to [conid=“6393”] in the .XML file and replace them with, for example, [symbol=“DEERE”]