Hi! Why do you think it's better?
Hi
You should replace:
nextHandler.handle();
by
if (isDefined(nextHandler)) nextHandler.handle();
I'm closing this for now, because it seems that current illustration does contain simple "isDefined" and "canHandle" checks:
Customer support service by UserEcho
Hi! Why do you think it's better?
Hi
You should replace:
by
I'm closing this for now, because it seems that current illustration does contain simple "isDefined" and "canHandle" checks: