null pointer in HTTPAgent fixed