Changed a '==' to a '.equals()' for an object

equality check