-
Notifications
You must be signed in to change notification settings - Fork 1.1k
java.lang.NullPointerException thrown if doGetValue returns "null" #3113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, we have a production code that worked fined for some years now, until we recently upgraded to We catch this issue, which I've replicated in a Unit test. If any of the following properties in the payload is null the flow will fail this is a simplified snippet of the configuration we have <bean id="updateStpSpeiSentRequestSource" class="org.springframework.integration.jdbc.ExpressionEvaluatingSqlParameterSourceFactory">
<property name="parameterExpressions">
<map>
<entry key="id" value="payload.id"/>
<entry key="stpId" value="payload.idStp"/>
<entry key="signature" value="payload.signature"/>
</map>
</property>
</bean> So, I've tracked down and debugged locally to the line
|
Wow! Great catch! Thank you! |
Hi Artem, Actually, the former code until 5.1.9.RELEASE was
And then changed to
Therefore, it seems a simple null check safeguard would be enough
Regards, |
Related to #3113 Also clean up code style in the `ExpressionEvaluatingSqlParameterSourceFactory`
spring-integration/spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/ExpressionEvaluatingSqlParameterSourceFactory.java
Line 230 in 19b9944
The text was updated successfully, but these errors were encountered: