pnoltes commented on a change in pull request #351:
URL: https://github.com/apache/celix/pull/351#discussion_r679975016



##########
File path: bundles/http_admin/http_admin/src/service_tree.c
##########
@@ -307,8 +307,8 @@ service_tree_node_t *findServiceNodeInTree(service_tree_t 
*svc_tree, const char
 
         char *uri_token = strtok_r(uri_cpy, "/", &save_ptr);
         //Check for horizontal matches for the first token
-        while(current != NULL) {
-            if(strcmp(current->svc_data->sub_uri, uri_token) == 0){
+        while (current != NULL) {
+            if (uri_token != NULL && strcmp(current->svc_data->sub_uri, 
uri_token) == 0){

Review comment:
       added a check for uri_token == NULL




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to