Added the same NULL check to the generic Bukkit unwrapper.
Dieser Commit ist enthalten in:
Ursprung
57add8e26f
Commit
768d169f27
@ -45,8 +45,10 @@ public class BukkitUnwrapper implements Unwrapper {
|
|||||||
@Override
|
@Override
|
||||||
public Object unwrapItem(Object wrappedObject) {
|
public Object unwrapItem(Object wrappedObject) {
|
||||||
|
|
||||||
// Special case
|
// Special cases
|
||||||
if (wrappedObject instanceof Collection) {
|
if (wrappedObject == null) {
|
||||||
|
return null;
|
||||||
|
} else if (wrappedObject instanceof Collection) {
|
||||||
return handleCollection((Collection<Object>) wrappedObject);
|
return handleCollection((Collection<Object>) wrappedObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren