Don't throw an exception here, just ignore the structure. It's not useful to have a payload structure with the corresponding switch instruction, but it's not invalid either. Someone could "exploit" this to prevent dexlib from working with their dex file.

However, you *should* check if there are multiple switch statements that reference the same switch payload structure, and throw an exception in that case. Technically, this is valid too, but it would never occur in "normal" code, and it's considerably more difficult to fix up. (you can try fixing it up if you want, but not required)