Fixed to possible NPE in the BasicItemForm.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2939 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-10-31 10:06:19 +00:00
parent 21c4b66746
commit bf5f36e526
1 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ public abstract class BasicItemForm extends FormSection
if (item == null) { // The content item being null
// means it is a creation form.
// Therefore finding any item of the same name is a fault.
name.addError(globalize(ERR_MSG));
data.addError(globalize(ERR_MSG));
return;
} else {
// means we are in a edit form.
@ -413,7 +413,7 @@ public abstract class BasicItemForm extends FormSection
String[] itemObj=new String[1];
itemObj[0]=itemID.toString();
dq.close();
name.addError(globalize(ERR_MSG,itemObj));
data.addError(globalize(ERR_MSG,itemObj));
return;
}
}