tree_schema_helpers BUGFIX return YANG_NONE on empty input
diff --git a/src/tree_schema_helpers.c b/src/tree_schema_helpers.c
index 8b32c93..8a96726 100644
--- a/src/tree_schema_helpers.c
+++ b/src/tree_schema_helpers.c
@@ -1322,6 +1322,10 @@
         return YANG_CUSTOM;
     }
 
+    if (!data || len == 0) {
+        return YANG_NONE;
+    }
+
 #define MOVE_IN(DATA, COUNT) (data)+=COUNT;
 #define IF_KEYWORD(STR, LEN, STMT) if (!strncmp((data), STR, LEN)) {MOVE_IN(data, LEN);kw=STMT;}
 #define IF_KEYWORD_PREFIX(STR, LEN) if (!strncmp((data), STR, LEN)) {MOVE_IN(data, LEN);