Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed npe

  • Loading branch information...
commit eea96258ab64259510bf10247a587b1c1dc3407e 1 parent 1c3bc50
@anti43 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/mpv5/ui/dialogs/subcomponents/ControlPanel_Taxes.java
View
3  src/mpv5/ui/dialogs/subcomponents/ControlPanel_Taxes.java
@@ -35,6 +35,7 @@
import mpv5.ui.dialogs.Popup;
import mpv5.ui.panels.DataPanel;
import mpv5.usermanagement.MPSecurityManager;
+import mpv5.utils.numberformat.FormatNumber;
import mpv5.utils.ui.TextFieldUtils;
/**
@@ -260,7 +261,7 @@ public Component getAndRemoveActionPanel() {
public boolean collectData() {
try {
cname_ = cname.getText();
- taxvalue_ = new BigDecimal(value.getValue(0d).toString());
+ taxvalue_ = FormatNumber.parseDezimal(value.getText(true, "0"));
country_ = countries.getComboBox().getSelectedItem().toString();
return true;
} catch (Exception e) {
Please sign in to comment.
Something went wrong with that request. Please try again.