mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
fix npe with offer details volume before prices loaded
This commit is contained in:
parent
b66e6b1c12
commit
0c5ed84996
@ -168,11 +168,11 @@ public class VolumeUtil {
|
||||
}
|
||||
|
||||
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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user