diff --git a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java index 8f4ac37e6..6a937d0f5 100644 --- a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java +++ b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java @@ -378,8 +378,7 @@ public String getAClientTable(boolean isSourceListTable) throws ArcException { + (isSourceListTable ? "" : "NOT") + " like " + requete.quoteText("%id\\_source%")); String selectedTableName = UtilitaireDao.get(0).getString(connection, requete); - - return this.client + selectedTableName.substring(this.client.length()); + return selectedTableName==null? null : this.client + selectedTableName.substring(this.client.length()); }