Skip to content

Commit

Permalink
NaN is no valid price
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Mar 26, 2020
1 parent a00d45c commit abdee7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/Acrobot/Breeze/Utils/PriceUtil.java
Expand Up @@ -39,7 +39,7 @@ public static double get(String text, char indicator) {
if (NumberUtil.isDouble(part)) {
double price = Double.valueOf(part);

if (Double.isInfinite(price) || price <= 0) {
if (!Double.isFinite(price) || price <= 0) {
return NO_PRICE;
} else {
return price;
Expand Down

0 comments on commit abdee7c

Please sign in to comment.