Fixed adapters in BitVC and HitBTC

Yes loanLtc was null and was causing the entire adapter to fail.
On Sep 23, 2014 5:59 PM, "Jonathan Heusser" <notifications@github.com>
wrote:

> In xchange-bitvc/src/main/java/com/xeiam/xchange/bitvc/BitVcAdapters.java:
>
> > @@ -102,15 +103,43 @@ private static Trade adaptTrade(BitVcTradeObject trade, CurrencyPair currencyPai
> >
> >    public static AccountInfo adaptAccountInfo(BitVcAccountInfo a) {
> >
> > -    Wallet cny = new Wallet(CNY, a.getAvailableCnyDisplay().add(a.getFrozenCnyDisplay()).subtract(a.getLoanCnyDisplay()), "available");
> > -    Wallet btc = new Wallet(BTC, a.getAvailableBtcDisplay().add(a.getFrozenBtcDisplay()).subtract(a.getLoanBtcDisplay()), "available");
> > -    Wallet ltc = new Wallet(LTC, a.getAvailableLtcDisplay().add(a.getFrozenLtcDisplay()).subtract(a.getLoanLtcDisplay()), "available");
> > -
> > +    if (a.getAvailableCny() == null) {
>
> is this really necessary, did you run into null pointer exceptions or so?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/timmolter/XChange/pull/659/files#r17942439>.
>