From 814a6ea75815af88566379818bd37c50ff0c94d9 Mon Sep 17 00:00:00 2001 From: leonardo Date: Tue, 27 Feb 2018 18:25:43 +0000 Subject: [PATCH] =?UTF-8?q?Descri=C3=A7=C3=A3o=20lan=C3=A7amento=20Receita?= =?UTF-8?q?=20/=20Despesa=20(=20Arquivo=20BGM)=20fixes=20bug#10665=20dev:F?= =?UTF-8?q?red=20qua:wallysson?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@79230 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../integracaoreceitadespesa/entidades/DespesaReceita.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java b/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java index 935859f5c..6db7dc692 100644 --- a/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java +++ b/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java @@ -82,7 +82,11 @@ public class DespesaReceita { } public void setDescricaoDetalhada(String desc){ - this.descricaoDetalhada = rpad(truncStr(desc, 100), " ", 100); + if (desc != null){ + this.descricaoDetalhada = rpad(truncStr(desc, 100), " ", 100); + } else { + this.descricaoDetalhada = ""; + } } private String truncStr(String str, int size){