IDEMPIERE-4468 Pass the current value of numberbox to the textfield of calculator (#311)

Fix NPE
This commit is contained in:
Carlos Ruiz 2020-10-21 14:48:24 +02:00 committed by GitHub
parent 78f388d450
commit ea6e77b5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {