File tree Expand file tree Collapse file tree
Kitodo/src/main/java/org/kitodo/production/forms Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,10 +223,12 @@ public Granularity getGranularity() {
223223 * @param granularity as org.kitodo.production.model.bibliography.course.Granularity
224224 */
225225 public void setGranularity (Granularity granularity ) {
226- this .granularity = granularity ;
227- course .splitInto (granularity );
228- if (Objects .nonNull (PrimeFaces .current ()) && Objects .nonNull (FacesContext .getCurrentInstance ())) {
229- PrimeFaces .current ().ajax ().update ("createProcessesConfirmDialog" );
226+ if (Objects .nonNull (granularity )) {
227+ this .granularity = granularity ;
228+ course .splitInto (granularity );
229+ if (Objects .nonNull (PrimeFaces .current ()) && Objects .nonNull (FacesContext .getCurrentInstance ())) {
230+ PrimeFaces .current ().ajax ().update ("createProcessesConfirmDialog" );
231+ }
230232 }
231233 }
232234
You can’t perform that action at this time.
0 commit comments