fix null pointer exception when setting proxy options