fixed null pointer exception while uploading obj=null...