diff --git a/apps/susidns/src/jsp/addressbook.jsp b/apps/susidns/src/jsp/addressbook.jsp
index fb1ce9295..db3f50b9d 100644
--- a/apps/susidns/src/jsp/addressbook.jsp
+++ b/apps/susidns/src/jsp/addressbook.jsp
@@ -77,6 +77,13 @@
<%=intl._t("Address book")%>: <%=intl._t(book.getBook())%>
<%=intl._t("Storage")%>: ${book.displayName}
+<%
+ // This is what does the form processing.
+ // We need to do this before any notEmpty test and before loadBookMessages() which displays the entry count.
+ // Messages will be displayed below.
+ String formMessages = book.getMessages();
+%>
+
${book.loadBookMessages}
<% if (book.getBook().equals("private")) { %>
@@ -128,15 +135,18 @@ ${book.loadBookMessages}
<% } /* book.getEntries().length() > 0 */ %>
+<% /* book.notEmpty */ %>
-
+<% /* headline */ %>
-${book.messages}<%
+<% /* need this whether book is empty or not to display the form messages */ %>
+
<%=formMessages%><%
if (importMessages != null) {
%><%=importMessages%><%
}
%>
+
diff --git a/history.txt b/history.txt
index b467be0ed..93e72a3ba 100644
--- a/history.txt
+++ b/history.txt
@@ -1,3 +1,6 @@
+2022-09-04 zzz
+ * SusiDNS: Fix adding to empty address book
+
2022-09-03 zzz
* NetDB: Query connected peers for their RI directly
* UPnP: Fix opening IPv6 ports
diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java
index 9bc4388a0..f2424bd3b 100644
--- a/router/java/src/net/i2p/router/RouterVersion.java
+++ b/router/java/src/net/i2p/router/RouterVersion.java
@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Git";
public final static String VERSION = CoreVersion.VERSION;
- public final static long BUILD = 5;
+ public final static long BUILD = 6;
/** for example "-test" */
public final static String EXTRA = "";