Hi I am working in string array and It seeming wont add the data in the array keep me getting an error or null exception
public boolean addCategory(String description){
if(numCategories <= maxArrayCategories){
arrayCategories[numCategories] = description;
numCategories++;
return true;}
else {return false;}}
Is the problem the function?