IDEMPIERE-4468 Pass the current value of numberbox to the textfield of calculator (#311)
Fix NPE
This commit is contained in:
parent
78f388d450
commit
ea6e77b5dd
|
@ -143,7 +143,7 @@ public class NumberBox extends Div
|
|||
HtmlBasedComponent comp = (HtmlBasedComponent) btn.getDesktop().getComponentByUuidIfAny(uid);
|
||||
if (comp != null) {
|
||||
Textbox ctbox = (Textbox) comp.getLastChild().getFirstChild();
|
||||
if (ctbox != null) {
|
||||
if (ctbox != null && decimalBox.getValue() != null) {
|
||||
ctbox.setText(decimalBox.getValue().toString());
|
||||
StringWriter writer = new StringWriter(1024);
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue