fix. http/endpoint.constructor

was letting null fall through to the ternary operation.