gleimar 2015-06-18 19:25:43 +00:00
parent 57a0a9f02a
commit 1b059d9a11
1 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad; package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
@ -118,7 +119,11 @@ public class BusquedaPerfilController extends MyGenericForwardComposer {
} }
plwPerfil.init(sistemaBusqueda, perfilList, pagingPerfil); plwPerfil.init(sistemaBusqueda, perfilList, pagingPerfil);
perfilList.removeItem(perfilService.buscar("RJ").get(0)); List<Perfil> perfilRJ = perfilService.buscar("RJ");
if ( (perfilRJ != null) && !perfilRJ.isEmpty()){
perfilList.removeItem(perfilService.buscar("RJ").get(0));
}
if (perfilList.getData().length == 0) { if (perfilList.getData().length == 0) {
try { try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),