diff --git a/changelog.md b/changelog.md
index 3723baf..2f944fa 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,6 @@
+## 2.1.2 
+* Fixed a bug where players got teleported one block beside the real portal.
+* Fixed a bug where gates with no location caused multiple exceptions.
 ## 2.1.1
 * Made the list command more reliable.
 * Error messages will be displayed less frequent.
diff --git a/plugin.yml b/plugin.yml
index 8add6bb..c17e863 100644
--- a/plugin.yml
+++ b/plugin.yml
@@ -1,5 +1,5 @@
 name: Craft Inc. Gates
-version: 2.1.1
+version: 2.1.2
 description: A plugin to create gates for fast traveling.
 softdepend: [Vault]
 author: tomco, s1m0ne
diff --git a/pom.xml b/pom.xml
index ca5f186..460cccb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
     de.craftinc
     CraftIncGates
     jar
-    2.1.1
+    2.1.2
 
     
         UTF-8
diff --git a/src/de/craftinc/gates/Gate.java b/src/de/craftinc/gates/Gate.java
index aa2a583..4bd8f06 100644
--- a/src/de/craftinc/gates/Gate.java
+++ b/src/de/craftinc/gates/Gate.java
@@ -300,8 +300,10 @@ public class Gate implements ConfigurationSerializable
 			retVal.put(exitYawKey, exit.getYaw());
 		}
 		
-		retVal.put(locationPitchKey, location.getPitch());
-		retVal.put(locationYawKey, location.getYaw());
+		if (location != null) {
+			retVal.put(locationPitchKey, location.getPitch());
+			retVal.put(locationYawKey, location.getYaw());
+		}
 		
 		List