default case is missing where an invalid shareType is handled