Issue with initializing a null proxy