mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
fix npe with offer details volume before prices loaded
This commit is contained in:
parent
b66e6b1c12
commit
0c5ed84996
1 changed files with 2 additions and 2 deletions
|
@ -168,11 +168,11 @@ public class VolumeUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatVolume(Volume volume, boolean appendCode) {
|
public static String formatVolume(Volume volume, boolean appendCode) {
|
||||||
return formatVolume(volume, getMonetaryFormat(volume.getCurrencyCode()), appendCode);
|
return formatVolume(volume, volume == null ? null : getMonetaryFormat(volume.getCurrencyCode()), appendCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatAverageVolumeWithCode(Volume volume) {
|
public static String formatAverageVolumeWithCode(Volume volume) {
|
||||||
return formatVolume(volume, getMonetaryFormat(volume.getCurrencyCode()).minDecimals(2), true);
|
return formatVolume(volume, volume == null ? null : getMonetaryFormat(volume.getCurrencyCode()).minDecimals(2), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatVolumeLabel(String currencyCode) {
|
public static String formatVolumeLabel(String currencyCode) {
|
||||||
|
|
Loading…
Reference in a new issue