There's no null check for locale with @Nullable. Its mainly from generated code which has @Nullable annotation by default. I think it should be removed.