prevent null ref in setAppList