summaryrefslogtreecommitdiffstats
path: root/ms/error-catalog/services
diff options
context:
space:
mode:
authorJozsef Csongvai <jozsef.csongvai@bell.ca>2020-07-21 16:15:56 -0400
committerJozsef Csongvai <jozsef.csongvai@bell.ca>2020-07-23 17:41:49 +0000
commite6a5b4203976b7969bc19199d24a63c7c1eb11df (patch)
treeda5bc59bf0dee45c6619849753a3b4e29fb05530 /ms/error-catalog/services
parent16ca057a54fc2d15159039dd5e8e44ae075c886b (diff)
Fix NullpointerException in ErrorCatalogLoadPropertyService
Issue-ID: CCSDK-2585 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I77864c7bd82033b7155572fd3a60c6cf88739f96
Diffstat (limited to 'ms/error-catalog/services')
-rw-r--r--ms/error-catalog/services/src/main/kotlin/org/onap/ccsdk/cds/error/catalog/services/ErrorCatalogLoadService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/error-catalog/services/src/main/kotlin/org/onap/ccsdk/cds/error/catalog/services/ErrorCatalogLoadService.kt b/ms/error-catalog/services/src/main/kotlin/org/onap/ccsdk/cds/error/catalog/services/ErrorCatalogLoadService.kt
index ca7d72b50..df13724c6 100644
--- a/ms/error-catalog/services/src/main/kotlin/org/onap/ccsdk/cds/error/catalog/services/ErrorCatalogLoadService.kt
+++ b/ms/error-catalog/services/src/main/kotlin/org/onap/ccsdk/cds/error/catalog/services/ErrorCatalogLoadService.kt
@@ -140,7 +140,7 @@ open class ErrorCatalogLoadPropertyService(private var errorCatalogProperties: E
log.error("Application ID: ${errorCatalogProperties.applicationId} > Fail to load property file " +
"'$propertyFileName' for message errors.")
} finally {
- inputStream!!.close()
+ inputStream?.close()
}
return props
}