I keep getting a null point exception in here and I don't know what's wrong with my code. I'm having Constructor that parses a String s like { x=-1 y=-2.0 z=3d }
into the internal HashMap representation of the Vector(_hmVar2Value)
.
public Vector(String s) {
String[] splitString = s.split(" ");
for (int i=0;i<splitString.length-2;i++) {
String[] str=splitString[i+1].split("=");
double x = Double.parseDouble(str[1]);
_hmVar2Value.put(str[0],x);
}
}