BugFix für NPE beim direkten Anlegen eines Herausgebers einer Reihe (Series), s. Ticket #1364

git-svn-id: https://svn.libreccm.org/ccm/trunk@1854 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2012-09-10 09:37:51 +00:00
parent 2a25c7a39f
commit 5f9e918271
1 changed files with 5 additions and 5 deletions

View File

@ -170,9 +170,9 @@ public class SeriesEditshipAddForm
@Override
public void process(FormSectionEvent fse) throws FormProcessException {
FormData data = fse.getFormData();
PageState state = fse.getPageState();
Series series =
final FormData data = fse.getFormData();
final PageState state = fse.getPageState();
final Series series =
(Series) getItemSelectionModel().getSelectedObject(state);
if (this.getSaveCancelSection().
@ -181,7 +181,7 @@ public class SeriesEditshipAddForm
editor = editStep.getSelectedEditor();
if (editor == null) {
GenericPerson editorToAdd =
final GenericPerson editorToAdd =
(GenericPerson) data.get(ITEM_SEARCH);
editorToAdd.getContentBundle().getInstance(series.getLanguage());
@ -196,7 +196,7 @@ public class SeriesEditshipAddForm
EditshipCollection.TO_SKIP_MONTH),
(Boolean) data.get(
EditshipCollection.TO_SKIP_DAY));
m_itemSearch.publishCreatedItem(data, editor);
m_itemSearch.publishCreatedItem(data, editorToAdd);
} else {
EditshipCollection editors;