Add a new case to deal with an object item in addWarning