if(NewItem.itemArray[i][3].equals(itemNO))
{
for (int x = 0; x < 4; x++)
{
NewItem.itemArray[i][x] = null; //Change all the values in the row to null
}
The compiler throws an exception when I try to run the program. What is wrong?
The following is the exception it shows.
Exception in thread "main" java.lang.NullPointerException
at DeleteItem.deleteItem(DeleteItem.java:34)
at EditItemDetails.editItem(EditItemDetails.java:25)
at CD_Universe.editItemDetailsActions(CD_Universe.java:84)
at CD_Universe.main(CD_Universe.java:109)