Archiviert
13
0

Added the same NULL check to the generic Bukkit unwrapper.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-10-12 00:01:05 +02:00
Ursprung 57add8e26f
Commit 768d169f27

Datei anzeigen

@ -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);
} }