If res is null in `getAndroidPlatform` then null[1] will error.