From: David ‘Bombe’ Roden Date: Sat, 27 Sep 2014 18:40:48 +0000 (+0200) Subject: Verify that the insert URI is not null. X-Git-Tag: 0.9-rc1^2~3^2~98 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=4e2205816edee258831b971f94ff0a736048905d Verify that the insert URI is not null. --- 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); } //