rterp / SumZeroTrading

A Java API for Developing Automated Trading Applications for the Equity, Futures, and Currency Markets
http://rterp.github.io/SumZeroTrading/
Other
145 stars 48 forks source link

NullPointerException thrown by InteractiveBrokersBroker on startup. #4

Closed rterp closed 8 years ago

rterp commented 8 years ago

java.lang.NullPointerException at com.sumzerotrading.broker.ib.InteractiveBrokersBroker.getDirName(InteractiveBrokersBroker.java:444) at com.sumzerotrading.broker.ib.InteractiveBrokersBroker.createDir(InteractiveBrokersBroker.java:437) at com.sumzerotrading.broker.ib.InteractiveBrokersBroker.loadOrderMaps(InteractiveBrokersBroker.java:425) at com.sumzerotrading.broker.ib.InteractiveBrokersBroker.(InteractiveBrokersBroker.java:117) at com.sumzerotrading.interactive.brokers.client.InteractiveBrokersClient.(InteractiveBrokersClient.java:80) at com.sumzerotrading.interactive.brokers.client.InteractiveBrokersClient.getInstance(InteractiveBrokersClient.java:65) at com.sumzerotrading.ib.example.trading.TradingExampleWithOrderStatusListener.placeFuturesOrder(TradingExampleWithOrderStatusListener.java:51) at com.sumzerotrading.ib.example.trading.TradingExampleWithOrderStatusListener.main(TradingExampleWithOrderStatusListener.java:115)

rterp commented 8 years ago

This is causing TradeOrder objects to not be persisted to the local filesystem in between TWS sessions.

rterp commented 8 years ago

Fixed