I am having a problem with a getter like :
String[] T2;
T2=Ti.getT();
Where getT() is :
public class MyClass {
public final String[] T=new String[3];
MyClass(){
this.T[0]="...";
this.T[1]="...";
this.T[2]="...";
}
public String[] getT() {
return T;
}
}
I am getting the message java.lang.NullPointerException in the T2=Ti.getT(); line.
Can anyone give me a clue? Am I using the array correctly?
Thank you.