Added null check for CCN in command block