diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPrecioVentaja.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPrecioVentaja.java index 926129850..6ce54a8c1 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPrecioVentaja.java +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPrecioVentaja.java @@ -23,16 +23,31 @@ public class RenderPrecioVentaja implements ListitemRenderer { Listcell lc = new Listcell(precioVentaja.getPrecioVentajaId() == null ? "" : precioVentaja.getPrecioVentajaId().toString()); lc.setParent(lstm); - - lc = new Listcell(precioVentaja.getCorridaId().toString()); - lc.setParent(lstm); - lc = new Listcell(precioVentaja.getRutaPrecioId().toString()); - lc.setParent(lstm); - - lc = new Listcell(precioVentaja.getOrigenPrecioId().toString()); - lc.setParent(lstm); + if(precioVentaja.getCorridaId() != null){ + lc = new Listcell(precioVentaja.getCorridaId().toString()); + lc.setParent(lstm); + }else{ + lc = new Listcell(""); + lc.setParent(lstm); + } + if(precioVentaja.getRutaPrecioId() != null){ + lc = new Listcell(precioVentaja.getRutaPrecioId().toString()); + lc.setParent(lstm); + }else{ + lc = new Listcell(""); + lc.setParent(lstm); + } + + if(precioVentaja.getOrigenPrecioId() != null){ + lc = new Listcell(precioVentaja.getOrigenPrecioId().toString()); + lc.setParent(lstm); + }else{ + lc = new Listcell(""); + lc.setParent(lstm); + } + lc = new Listcell(precioVentaja.getDestinoPrecioId().toString()); lc.setParent(lstm);