Why not throw an exception instead of failing silently? I wouldn't expect code to call this if the dispatcher servlet is null