Skip to content

Commit cc37fca

Browse files
committed
Return CNull meta when item is null
1 parent daf8c53 commit cc37fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/laytonsmith/core/ObjectGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ private static MCItemStack EmptyItem() {
430430
}
431431

432432
public Construct itemMeta(MCItemStack is, Target t) {
433-
if(!is.hasItemMeta()) {
433+
if(is == null || !is.hasItemMeta()) {
434434
return CNull.NULL;
435435
} else {
436436
Construct display;

0 commit comments

Comments
 (0)