git-svn-id: https://svn.coded.pt/svn/SIPRP@1453 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
Diogo Neves 15 years ago
parent 99a17b9613
commit 79f79d4446

@ -183,7 +183,7 @@ public class UtilizadoresDataProvider {
Statement st = createStatement(); Statement st = createStatement();
String sql = ""; String sql = "";
String estabelecimento_constraint = ""; String estabelecimento_constraint = "";
if(tipo.intValue() == Global.TIPO_UTILIZADOR_RH || tipo.intValue() == Global.TIPO_UTILIZADOR_SEGURANCA) if( tipo != null && ( tipo.intValue() == Global.TIPO_UTILIZADOR_RH || tipo.intValue() == Global.TIPO_UTILIZADOR_SEGURANCA ) )
{ {
estabelecimento_constraint = " AND estabelecimento_id = " + estabelecimento_id; estabelecimento_constraint = " AND estabelecimento_id = " + estabelecimento_id;
} }

Loading…
Cancel
Save