Skip to content

Commit e98427e

Browse files
author
Lloyd Watkin
committed
Ensure we set channelManager
1 parent ab4c9f5 commit e98427e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/org/buddycloud/channelserver/channel/ValidateEntry.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ private boolean validateInReplyToElement(Element reply)
273273
inReplyTo = GlobalItemIDImpl.toLocalId(inReplyTo);
274274
}
275275

276-
replyingToItem = null;
277-
if (null == (replyingToItem = channelManager.getNodeItem(node,
278-
inReplyTo))) {
276+
replyingToItem = channelManager.getNodeItem(node,
277+
inReplyTo);
278+
if (null == replyingToItem) {
279279
this.errorMessage = PARENT_ITEM_NOT_FOUND;
280280
return false;
281281
}

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/Publish.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ private boolean isRequestValid() throws Exception {
157157
entryContent.setUser(publishersJID);
158158
entryContent.setTo(request.getTo().toBareJID());
159159
entryContent.setNode(node);
160+
entryContent.setChannelManager(channelManager);
160161

161162
if (!entryContent.isValid()) {
162163
sendInvalidEntryResponse();

0 commit comments

Comments
 (0)