hutcheb commented on a change in pull request #230:
URL: https://github.com/apache/plc4x/pull/230#discussion_r603091403



##########
File path: 
build-utils/language-c/src/main/java/org/apache/plc4x/language/c/CLanguageTemplateHelper.java
##########
@@ -288,7 +299,7 @@ public String getTypeSizeForField(TypedField field) {
 
     public String escapeValue(TypeReference typeReference, String valueString) 
{
         if (valueString == null) {
-            return null;
+            return "NULL";

Review comment:
       At this point it could be any string, this only gets used once in 
enum-template-c line 95 and it just checks for a "-1" value.
   As long as it doesn't return an actual null we should be good.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to