diff --git a/structr/structr-rest/src/main/java/org/structr/rest/resource/TypeResource.java b/structr/structr-rest/src/main/java/org/structr/rest/resource/TypeResource.java
index <HASH>..<HASH> 100644
--- a/structr/structr-rest/src/main/java/org/structr/rest/resource/TypeResource.java
+++ b/structr/structr-rest/src/main/java/org/structr/rest/resource/TypeResource.java
@@ -274,10 +274,10 @@ public class TypeResource extends SortableResource {
 
 			}
 
-			checkForIllegalSearchKeys(searchableProperties);
-
 			if (searchableProperties != null) {
 
+				checkForIllegalSearchKeys(searchableProperties);
+
 				for (String key : searchableProperties) {
 
 					String searchValue = request.getParameter(key);
added np check for searchable properties