Added a potential exception when we call the getDifference method