Unset variables causing NullExceptionPointer in os-core-common AppPropertiesFeatureFlagImpl
There is a scenario when an unset variable is causing the application to fail unexpectedly:
Caused by: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "org.springframework.core.env.Environment.getProperty(String)" is null at org.opengroup.osdu.core.common.feature.AppPropertiesFeatureFlagImpl.isFeatureEnabled(AppPropertiesFeatureFlagImpl.java:18) at org.opengroup.osdu.storage.service.IngestionServiceImpl.createUpdateRecords(IngestionServiceImpl.java:119) at org.opengroup.osdu.storage.api.RecordApi.createOrUpdateRecords(RecordApi.java:102)
The code here will need to be changed: https://community.opengroup.org/osdu/platform/system/lib/core/os-core-common/-/blob/master/src/main/java/org/opengroup/osdu/core/common/feature/AppPropertiesFeatureFlagImpl.java#L18
Its even highlighted by sonar lint.