You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
Caused by: java.lang.NullPointerException
at com.ibm.cloud.spring.env.CloudServicesConfigMap.getValue (CloudServicesConfigMap.java:128)
at com.ibm.cloud.spring.env.CloudServicesPropertySource.getProperty (CloudServicesPropertySource.java:39)
at org.springframework.boot.context.properties.source.SpringConfigurationPropertySource.find (SpringConfigurationPropertySource.java:111)
Seemingly because the code makes an assumption that there will always be an immediate child of a mappings.json entry called searchPatterns and does not test for the situation where that does not exist.
malformed mappings.json entries such as
Cause project start up to fail with an NPE
Seemingly because the code makes an assumption that there will always be an immediate child of a mappings.json entry called
searchPatterns
and does not test for the situation where that does not exist.in this case the malformed json has 'credentials' as the child, which means this code
https://github.com/ibm-developer/ibm-cloud-spring-bind/blob/master/src/main/java/com/ibm/cloud/spring/env/CloudServicesConfigMap.java#L127-#L128
fails because 'array' ends up as null causing the NPE.
The text was updated successfully, but these errors were encountered: