From 9194701a6a2f41238c4184ef31a3333968350694 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Tue, 27 Feb 2024 18:21:48 -0300 Subject: [PATCH] fixes bug#AL-3898 --- .../ventaboletos/relatorios/impl/RelatorioEstoque.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java index 21a660f9a..66d355a9d 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java @@ -47,7 +47,7 @@ public class RelatorioEstoque extends Relatorio { String formInicio = rset.getString("forminicial"); if (tipoVenta.equals(EnumTipoVenda.TPV_MANUAL.getId().toString())) { - String ultimoFolioCaja = String.valueOf(rset.getInt("ultimoFolioCaja") + 1); + String ultimoFolioCaja = rset.getString("ultimoFolioCaja") != null ? String.valueOf(rset.getInt("ultimoFolioCaja") + 1) : null; boolean isFormularioMaior = false; try {