Issue Fixed 

mUsername and mDomain were null when creating the register agent.