modified throw admin not found exception when extention is null.