elasticsearch/elasticsearch — pull request #7251 by jpountz (2014-08-13 09:16:32+00:00)
Title: Internal: Add some @Nullable annotations and fix related compilation warnings.

Added `@Nullable` to:
- IndicesService.indexService
- IndexService.shard
- IndexService.shardInjector

This change doesn't try to do anything smart but just makes sure that a
*MissingException is thrown instead of a NullPointerException when the requested
object doesn't exist.