Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3884 Using lists returned from getReportData(processId)
 Post subject: JFOREX-3884 Using lists returned from getReportData(processId) Post rating: 0   New post Posted: Thu 31 May, 2012, 20:54 

User rating: 6
Joined: Sat 03 Mar, 2012, 10:29
Posts: 9
Hi,
I'm always getting NullPointerException when trying to access the lists (getClosedOrders(), getEvents(), getOpenOrders(), getPerfStats()) from an ITesterReportData source.
ITesterReportData reportData = itesterclient.getReportData(processId);
System.out.println(reportData.getClosedOrders()); // 'null'
System.out.println(reportData.getClosedOrders().isEmpty()); // reports exception

However, getting single values like (getFinishDeposit, getStrategyName, etc.) works fine.
System.out.println(reportData.getInitialDeposit()); // '10000.0'

Could you help me out what I'm missing?


 
 Post subject: Re: Using lists returned from getReportData(processId) Post rating: 0   New post Posted: Sat 02 Jun, 2012, 10:52 

User rating: 6
Joined: Sat 03 Mar, 2012, 10:29
Posts: 9
Maybe I should have posted this to the Bugs section.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com