I have created array for object and now it is showing null pointer exception

```
attributes attrs1[]=new attributes[6];

attrs1[0].setKey1("processor");
attrs1[0].setValue1("i3");

attrs1[1].setKey1("ram");
attrs1[1].setValue1("256mb");

attrs1[2].setKey1("display");
attrs1[2].setValue1("15");

```