X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FDefaultOwnIdentity.java;h=68e6f417edcbd7f41a88717fd99d3afca4ebb1f1;hp=ce34b2ad67a7b41ce1b0fe84ef601cc3ab671198;hb=419098bcd6215125408b29e60bd888e60979d37b;hpb=2d1bc900f1134faefb9701cf91729b9469167d0c 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..68e6f41 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java @@ -1,5 +1,5 @@ /* - * Sone - DefaultOwnIdentity.java - Copyright © 2010–2013 David Roden + * Sone - DefaultOwnIdentity.java - Copyright © 2010–2015 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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); } //