binance-java-api icon indicating copy to clipboard operation
binance-java-api copied to clipboard

fix NPE in example UserDataStreamExample

Open phil-e-b opened this issue 4 years ago • 0 comments

When running the UserDataStreamExample, after receiving an OrderTradeUpdateEvent, the final callback returns a null object at line 38, which then throws a NPE when trying to retrieve getOriginalQuantity().

Just added a null check for the event.

phil-e-b avatar Feb 06 '21 02:02 phil-e-b