From 4e2205816edee258831b971f94ff0a736048905d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 27 Sep 2014 20:40:48 +0200 Subject: [PATCH] Verify that the insert URI is not null. --- .../java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java index ce34b2a..4a842e9 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java @@ -17,6 +17,8 @@ package net.pterodactylus.sone.freenet.wot; +import static com.google.common.base.Preconditions.checkNotNull; + /** * An own identity is an identity that the owner of the node has full control * over. @@ -42,7 +44,7 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity { */ public DefaultOwnIdentity(String id, String nickname, String requestUri, String insertUri) { super(id, nickname, requestUri); - this.insertUri = insertUri; + this.insertUri = checkNotNull(insertUri); } // -- 2.7.4