diff --git a/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlFilterConverter.java b/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlFilterConverter.java index 54275abe1a3..269c1e60f74 100644 --- a/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlFilterConverter.java +++ b/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlFilterConverter.java @@ -515,6 +515,10 @@ private String resolveAttributeName(TableMapping tableMapping, Filter filter) th } String attributeNameLower = attributeName.toLowerCase(); + + if (tableMapping.getColumTypes() == null) { + throw new SearchException(String.format("Unknown table '%s' and it's column '%s'", tableMapping.getTableName(), attributeName)); + } AttributeType attributeType = tableMapping.getColumTypes().get(attributeNameLower); if (attributeType == null) {