check null for getContext() in UpdateInstalledPacksTask.doInBackground