Nys pistol grip?

Say I were to have a pistol grip on my rifle in nys without a mag lock, which is considered a felony. Say someone breaks into my house, and I defend my home with the pistol grip ar15 would I get in trouble?

Edit: I’m just gonna stick to my mossberg 590 lmaoooo would go glock but getting a pistol in ny is like trying to climb Mount Everest blind. Thanks for the info guys