From 834a313ea785464e5ba39e5b99e330a3ce54e0c2 Mon Sep 17 00:00:00 2001 From: wilian Date: Mon, 20 Jun 2016 19:51:46 +0000 Subject: [PATCH] fixes bug #7603 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@57123 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../EditarConfiguracionPacoteController.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/EditarConfiguracionPacoteController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/EditarConfiguracionPacoteController.java index 1e7907d65..784d45176 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/EditarConfiguracionPacoteController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/EditarConfiguracionPacoteController.java @@ -125,11 +125,13 @@ public class EditarConfiguracionPacoteController extends MyGenericForwardCompose descPacote.setValue(pacote.getDescpacote()); indVendaAgencia.setChecked(pacote.getIndvendaagencia()); - Comboitem ci = new Comboitem(pacote.getRuta().toString()); - ci.setAttribute("value", pacote.getRuta()); - ci.setValue(pacote.getRuta()); - ci.setParent(cmbRuta); - cmbRuta.setSelectedItem(ci); + if(pacote.getRuta() != null && pacote.getRuta().getActivo()) { + Comboitem ci = new Comboitem(pacote.getRuta().toString()); + ci.setAttribute("value", pacote.getRuta()); + ci.setValue(pacote.getRuta()); + ci.setParent(cmbRuta); + cmbRuta.setSelectedItem(ci); + } if (pacote.getActivo()) { radIndAutorizado.setChecked(true);