**[Tareq Abedrabbo](https://jira.spring.io/secure/ViewProfile.jspa?name=tareq)** opened **[SWS-358](https://jira.spring.io/browse/SWS-358?redirect=false)** and commented We should test whether the Message returned by messageConsumer.receive is null (case of time out for instance) or else a NPE is thrown: Message message = receiveTimeout >= 0 ? messageConsumer.receive(receiveTimeout) : messageConsumer.receive(); --- **Affects:** 1.5.2 **Referenced from:** commits https://github.com/spring-projects/spring-ws/commit/b07aa24e5f3b1fdd0d86ec74e06adf6f33b3d073