summaryrefslogtreecommitdiffstats
path: root/EssentialsGeoIP
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsGeoIP')
-rw-r--r--EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java b/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java
index a6bbeffec..14554e3a9 100644
--- a/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java
+++ b/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java
@@ -53,7 +53,11 @@ public class EssentialsGeoIPPlayerListener implements Listener, IReload
config.acquireReadLock();
try
{
+ if (event.getPlayer().getAddress() == null || event.getPlayer().getAddress().getAddress() == null) {
+ return;
+ }
final InetAddress address = event.getPlayer().getAddress().getAddress();
+
final StringBuilder builder = new StringBuilder();
if (config.getData().getDatabase().isShowCities())
{