FIX: tried to add an optional derived resource when the object was null