Переглянути джерело

Skip variable add Type-Check if node value is NULL

Stefan Profanter 6 роки тому
батько
коміт
5c6bc7b309
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/server/ua_services_nodemanagement.c

+ 1 - 1
src/server/ua_services_nodemanagement.c

@@ -190,7 +190,7 @@ typeCheckVariableNode(UA_Server *server, UA_Session *session,
     }
 
     /* Typecheck the value */
-    if(value.hasValue) {
+    if(value.hasValue && value.value.data) {
         /* If the type-check failed write the same value again. The
          * write-service tries to convert to the correct type... */
         if(!compatibleValue(server, session, &node->dataType, node->valueRank,