tools: Fixed missing a NullPointerException for the CMP simulation