Skip to content
This repository has been archived by the owner on Dec 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #49 from Longi94/hotfix
Browse files Browse the repository at this point in the history
fixed crash
  • Loading branch information
Longi94 authored Apr 9, 2017
2 parents 4e6b087 + 0d0163c commit 176f5a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId "com.tlongdev.bktf"
minSdkVersion 14
targetSdkVersion 24
versionCode 48
versionName "2.2.0"
versionCode 49
versionName "2.2.1"

applicationVariants.all { variant ->
variant.outputs.each { output ->
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/tlongdev/bktf/model/Price.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ public double getConvertedPrice(Context context, @Currency.Enum String targetCur

double price = isHigh ? highValue : value;

if (currency.equals(targetCurrency))
// TODO: 4/9/2017 what to do with nulls and where the fuck do they come from
if (currency == null || currency.equals(targetCurrency))
//The target currency equals the original currency, nothing to do.
return price;

Expand Down

0 comments on commit 176f5a2

Please sign in to comment.