Skip to content

Commit

Permalink
[core] issue knowm#2397 - NPE for Trade hash
Browse files Browse the repository at this point in the history
  • Loading branch information
timmolter committed Mar 11, 2018
1 parent aac1405 commit 00cdeeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.Order.OrderType;
Expand Down Expand Up @@ -109,7 +110,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {

return id.hashCode();
return Objects.hashCode(id);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class KucoinDealOrder {
private BigDecimal volume;

public KucoinDealOrder(Long timestamp, KucoinOrderType orderType, BigDecimal price, BigDecimal amount, BigDecimal volume) {
super();

this.timestamp = timestamp;
this.orderType = orderType;
this.price = price;
Expand Down

0 comments on commit 00cdeeb

Please sign in to comment.