Project: mule
Issue MULE-7373: Devkit intercepting message processors fail if they are the last element of a chain
Then an intercepting message processor is the last in a chain, it's listener is null. AbstractListeningMessageProcessor, which is the base class for all intercepting message processors created by the devkit, assumes that it will always receive a non-null listener, and fails with a NPE on the process(...) methods that will attempt to call method process of the listener. This is reproduced by putting any devkit intercepting component as the last element of a flow or scope, or at unit testing level, if you don't set the listener but try to use any of the SourceCallback methods.
Story points: 1