Skip to content

Commit 9cfcc8a

Browse files
author
Lloyd Watkin
committed
brackets
1 parent 9373665 commit 9cfcc8a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ public boolean isValid() throws NodeStoreException {
8686

8787
Element id = this.entry.element("id");
8888
if ((id == null) || (true == id.getText().isEmpty())) {
89-
if (null != id)
89+
if (null != id) {
9090
id.detach();
91+
}
9192
LOGGER.debug("ID of the entry was missing. We add a default one to it: 1");
9293
this.entry.addElement("id").setText("1");
9394
}

0 commit comments

Comments
 (0)