I have created a class for a GUI Frame. It has functions like add, delete, edit, etc. When I compile the class there are not syntax errors. But when I try to run the class, then there is an error that says :
NullPointerException:null
and,
this line of code from the class is highlighted:
field[i] = new JTextField();
Why is this and how do I correct it?