# | Line 943 | Line 943 | public class ThreadPoolExecutor implemen | |
---|---|---|
943 | * Sets a new handler for unexecutable tasks. | |
944 | * | |
945 | * @param handler the new handler | |
946 | + | * @throws NullPointerException if handler is null |
947 | * @see #getRejectedExecutionHandler | |
948 | */ | |
949 | public void setRejectedExecutionHandler(RejectedExecutionHandler handler) { | |
950 | + | if (handler == null) |
951 | + | throw new NullPointerException(); |
952 | this.handler = handler; | |
953 | } | |
954 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |