From 246b93bda9258c8f6980f734337dffab76f13939 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sat, 20 Jan 2018 16:50:38 -0800 Subject: [PATCH] Allow null instead of throwing exception. Fixes #1008 --- .../massivecraft/factions/listeners/FactionsBlockListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java index 521948e0..908d5a2e 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java @@ -252,7 +252,7 @@ public class FactionsBlockListener implements Listener { } } - Access access = otherFaction.getAccess(me, Action.valueOf(action)); + Access access = otherFaction.getAccess(me, Action.fromString(action)); if (access != null && access != Access.UNDEFINED) { // TODO: Update this once new access values are added other than just allow / deny. return access == Access.ALLOW;