marcocg: Missing null check in Miner.work()