diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-01-28 11:59:54 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-01-28 11:59:54 +0000 |
commit | 92f83dfe732e6e14d5b5d027b87b15798cd4ee19 (patch) | |
tree | d89357ad20f9354d05e0168db665f764b43c349c /EssentialsGroupManager | |
parent | 00057eaca40e908bcfd9b706eb4ae51b5d9cf2aa (diff) | |
download | Essentials-92f83dfe732e6e14d5b5d027b87b15798cd4ee19.tar Essentials-92f83dfe732e6e14d5b5d027b87b15798cd4ee19.tar.gz Essentials-92f83dfe732e6e14d5b5d027b87b15798cd4ee19.tar.lz Essentials-92f83dfe732e6e14d5b5d027b87b15798cd4ee19.tar.xz Essentials-92f83dfe732e6e14d5b5d027b87b15798cd4ee19.zip |
fix for an iterator error if there is only one element in the array.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index 7c063e22d..396b49583 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -207,9 +207,10 @@ public class BukkitPermissions { String node = (String) itr.next();
String b = node.charAt(0) == '-'? node.substring(1):node;
+ // Insert the parent node before the child
if (allchildren.containsKey(b)) {
- itr.previous();
- itr.add(key);
+ itr.set(key);
+ itr.add(node);
break;
}
}
|