Fixed NullAdapter factory. Do not try to replace arguments.