From d73f90c6e8c06452957ce0c071939aba0183fe36 Mon Sep 17 00:00:00 2001 From: Steven Scott Date: Wed, 30 Nov 2011 22:41:49 -0800 Subject: [PATCH] Quick fix for an NPE --- README | 2 ++ src/net/TheDgtl/Stargate/Stargate.java | 2 +- src/plugin.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README b/README index 7c71307..2a0173d 100644 --- a/README +++ b/README @@ -197,6 +197,8 @@ createConflict=Gate conflicts with existing gate ============= Changes ============= +[Version 0.7.2.1] + - Quick fix for an NPE [Version 0.7.2] - Make it so you can still destroy gates in Survival mode [Version 0.7.1] diff --git a/src/net/TheDgtl/Stargate/Stargate.java b/src/net/TheDgtl/Stargate/Stargate.java index d6ff8c3..eacd1fe 100644 --- a/src/net/TheDgtl/Stargate/Stargate.java +++ b/src/net/TheDgtl/Stargate/Stargate.java @@ -378,7 +378,7 @@ public class Stargate extends JavaPlugin { // Player gets free use if (hasPerm(player, "stargate.free") || Stargate.hasPerm(player, "stargate.free.use")) return true; // Don't charge for free destination gates - if (!iConomyHandler.chargeFreeDestination && dest.isFree()) return true; + if (dest != null && !iConomyHandler.chargeFreeDestination && dest.isFree()) return true; return false; } diff --git a/src/plugin.yml b/src/plugin.yml index 3c135a3..11bd4f8 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.TheDgtl.Stargate.Stargate -version: 0.7.2 +version: 0.7.2.1 description: Stargate mod for Bukkit author: Drakia website: http://www.thedgtl.net