Hi I’m trying to create random circles which do not overlap. I have seen a few videos on the net but they do not specifically use array to solve the question. Is there any way to do it?

Below is the code I have tried out but null pointer exception keeps showing up

```
PVector v1,v2;
void setup(){
size(800,800);
}
void draw(){
int circles []= new int [25];
boolean overlap = false;
for (int j =0; j < circles.length; j++){
v2 = new PVector(random(width),random (height),50);
float d = dist(v1.x, v1.y, v2.x, v2.y);
if (d < v1.z + v2.z){
overlap = true;
break;
}
if(!overlap) {
circle(v1.x,v1.y,v1.z*2);
}
}
for (int i = 0; i< circles.length; i++){
v1 = new PVector(random(width),random (height),50);
circle(v1.x,v1.y,v1.z*2);
frameRate(1);
}
}
```