NJ-1040 line 17 (dividends) and 19 (ner gains) double taxation?

Hi,

 

NJ1040's line 19 is essentially NJ-DOP's line 4 which includes NJ-DOP's line 2 (capital gains distributions). Since it already includes all the dividends I received, can I just skip NJ1040's line 17 (dividends)? I feel dividends are taxed twice by NJ if I enter a number on line 17. Could anyone help with the question?

 

Thanks,

Zack