diff --git a/pom.xml b/pom.xml
index 7485745..c9b704d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -123,7 +123,7 @@
de.jeff_media
ChestSortAPI
- 1.1.0
+ 1.0.0
compile
diff --git a/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java b/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java
index 66e23dd..9b30cff 100644
--- a/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java
+++ b/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java
@@ -343,6 +343,11 @@ public class ChestSortOrganizer {
// Generate a map of "{placeholder}", "sortString" pairs for an ItemStack
Map getSortableMap(ItemStack item) {
+ if (item == null) {
+ // Empty map for non-item
+ return new HashMap();
+ }
+
String blocksFirst;
String itemsFirst;
if (item.getType().isBlock()) {