From c00d21d840f654fbc11492b0db61f221fede9d94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9gory=20Mantelet?=
 <gregory.mantelet@astro.unistra.fr>
Date: Fri, 9 Aug 2019 10:00:59 +0200
Subject: [PATCH] [ADQL] No more need to remove FunctionDef with empty
 names...now, by definition, this is not any more possible.

---
 src/adql/db/DBChecker.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/adql/db/DBChecker.java b/src/adql/db/DBChecker.java
index 082e4a3..485b0c4 100644
--- a/src/adql/db/DBChecker.java
+++ b/src/adql/db/DBChecker.java
@@ -226,11 +226,11 @@ public class DBChecker implements QueryChecker {
 
 		// Store all allowed UDFs in a sorted array:
 		if (allowedUdfs != null) {
-			// Remove all NULL and empty strings:
+			// Remove all NULL:
 			tmp = new FunctionDef[allowedUdfs.size()];
 			cnt = 0;
 			for(FunctionDef udf : allowedUdfs) {
-				if (udf != null && udf.name.trim().length() > 0)
+				if (udf != null)
 					tmp[cnt++] = udf;
 			}
 			// make a copy of the array:
-- 
GitLab