RESOLVED - BATCH-589: StepExecutionResourceProxy's toString() leads to NPE
added assertion delegate is not null in toString (similar to other methods) and removed the toString usage in FlatFileItemReader#setResource
This commit is contained in:
@@ -291,9 +291,9 @@ public class StepExecutionResourceProxy extends StepExecutionListenerSupport imp
|
||||
* Delegates to the proxied Resource.
|
||||
*/
|
||||
public String toString() {
|
||||
Assert.state(delegate != null, "The delegate resource has not been initialised. "
|
||||
+ "Remember to register this object as a StepListener.");
|
||||
return delegate.toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user