nadment commented on issue #4145:
URL: https://github.com/apache/hop/issues/4145#issuecomment-2263975416

   I have a fix for the NPE but for the moment it's not backwards compatible 
and I haven't found a way in LogLevel or XmlMetadataUtil to use an alias.
   
   
     public static LogLevel lookupCode(final String code) {
   
       // Try alias for WriteToLog transform compatibility version before 2.10
       LogLevel alias = IEnumHasCode.lookupCode(LogLevel.class, "log_level_" + 
code, null);
       if (alias != null) {
         return alias;
       }
       
       return IEnumHasCode.lookupCode(LogLevel.class, code, LogLevel.BASIC);
     }


-- 
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: [email protected]

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

Reply via email to