Commit 2cfee0c6 authored by Christian Schudt's avatar Christian Schudt

Fix NPE in Node.java when changing node configuration.

This NPE caused two issues:
- subscribers are not correctly notified
- change is not persisted to the DB

https://community.igniterealtime.org/thread/57584
parent 632189b3
......@@ -875,7 +875,7 @@ public abstract class Node {
formField.setLabel(LocaleUtils.getLocalizedString("pubsub.form.conf.collection"));
}
if (!parent.isRootCollectionNode()) {
if (parent != null && !parent.isRootCollectionNode()) {
formField.addValue(parent.getNodeID());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment