Check for null on the argument instead of the message

See gh-1307
Issue: SPR-15196
This commit is contained in:
Ruben Dijkstra
2017-01-27 13:29:42 +01:00
committed by Stephane Nicoll
parent 944d17f237
commit f1c7e0f5b2
9 changed files with 11 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ public abstract class AbstractCacheInvoker {
}
protected AbstractCacheInvoker(CacheErrorHandler errorHandler) {
Assert.notNull("ErrorHandler must not be null");
Assert.notNull(errorHandler, "ErrorHandler must not be null");
this.errorHandler = errorHandler;
}