Fix NullpointerException in ErrorCatalogLoadPropertyService 26/110426/2
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Tue, 21 Jul 2020 20:15:56 +0000 (16:15 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Thu, 23 Jul 2020 17:41:49 +0000 (17:41 +0000)
Issue-ID: CCSDK-2585
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I77864c7bd82033b7155572fd3a60c6cf88739f96

ms/error-catalog/services/src/main/kotlin/org/onap/ccsdk/cds/error/catalog/services/ErrorCatalogLoadService.kt

index ca7d72b..df13724 100644 (file)
@@ -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
     }