Update year in copyright lines
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / wot / DefaultOwnIdentity.java
index ce34b2a..e2e3a74 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - DefaultOwnIdentity.java - Copyright © 2010–2013 David Roden
+ * Sone - DefaultOwnIdentity.java - Copyright © 2010–2019 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
 
 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.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity {
 
@@ -42,7 +42,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);
        }
 
        //