Settings s = ImmutableSettings.settingsBuilder()
.put("client.transport.sniff", true).build();
TransportClient client = new TransportClient(s);
client.addTransportAddress(new InetSocketTransportAddress(
"localhost",
9300)
);
indexRreqBuild = client.prepareIndex(indexName, indexType).
a null pointer exception occured