Commit 0c4f5865 authored by Guus der Kinderen's avatar Guus der Kinderen Committed by akrherz

OF-1374: Fixed incorrect XML navigation in PEP auto-create

parent cf6989ca
...@@ -336,8 +336,7 @@ public class PubSubEngine { ...@@ -336,8 +336,7 @@ public class PubSubEngine {
// If it is a PEP service & publisher is service owner - // If it is a PEP service & publisher is service owner -
// auto create nodes. // auto create nodes.
Element childElement = iq.getChildElement(); Element childElement = iq.getChildElement();
Element createElement = publishElement.element("publish"); CreateNodeResponse response = createNodeHelper(service, iq, childElement, publishElement);
CreateNodeResponse response = createNodeHelper(service, iq, childElement, createElement);
if (response.newNode == null) { if (response.newNode == null) {
// New node creation failed. Since pep#auto-create is advertised // New node creation failed. Since pep#auto-create is advertised
......
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