From 0a69187992f05666e584a47b616a18eba2d05766 Mon Sep 17 00:00:00 2001 From: UnlegitDqrk Date: Mon, 2 Mar 2026 18:29:54 +0100 Subject: [PATCH] Fixed mistake where document doesn't actually have the created body or head in WebPage.java --- dependency-reduced-pom.xml | 2 +- .../org/openautonomousconnection/webserver/api/WebPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml index d407f56..a3a8ee3 100644 --- a/dependency-reduced-pom.xml +++ b/dependency-reduced-pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.openautonomousconnection WebServer - 1.0.1-BETA.0.4 + 1.0.1-BETA.0.5 The default DNS-Server https://open-autonomous-connection.org/ diff --git a/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java b/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java index 57345f5..a9e688a 100644 --- a/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java +++ b/src/main/java/org/openautonomousconnection/webserver/api/WebPage.java @@ -42,11 +42,11 @@ public abstract class WebPage { */ public WebPage() { this.document = documentBuilder.newDocument(); + this.head = (HTMLHeadElement) this.document.createElement("head"); this.body = (HTMLBodyElement) this.document.createElement("body"); this.document.appendChild(this.head); - this.document.appendChild(this.body); }