Any idea how the blocks were placed? this condition shouldn't be happening.
Darkhax commented
If this is the crash I think it is, this was caused by placing the black block using World Edit. The issue is likely caused by not checking for a default case, and the world edit command not setting critical nbt data.