Modified the templLocations array initialization to use safe calls (?.let) when accessing environment variables. This prevents attempts to create Path objects with null values.
Included a filterNotNull() call to remove any null entries that may arise due to missing environment variables, ensuring that the array only contains valid paths.
Changes
Modified the templLocations array initialization to use safe calls (?.let) when accessing environment variables. This prevents attempts to create Path objects with null values.
Included a filterNotNull() call to remove any null entries that may arise due to missing environment variables, ensuring that the array only contains valid paths.