I am assuming getFuelTime
function is being invoked when you pull items out of the melted slot. If you used a lava bucket to melt the items, the bucket is passed as an argument but it has no fuel time as an empty bucket. It excepts an integer, gets a null, crash occurs.