I'm not going to say J-Law had it coming, or deserved it, or shouldn't have taken photos in the first place.
However...
I don't think it's particularly surprising to hear she got hacked. It almost has a grim inevitability about it. One of the hottest female stars in Hollywood at the moment, I expect she has paparazzi camped outside her house 24/7 with telephoto lenses in the hopes of seeing half a nipple in the reflection of her TV when she wears a low-cut top around the house. Actual, bona-fide, nude photos represent the freaking MOTHER LODE. As much as J-Law has the same basic right to privacy as the rest of us, truth be told shes significantly different to the rest of us by dint of being a fabulously wealthy and successful, attractive young celebrity. She's going to attract a lot more attention, some of it unwanted.
To reiterate, what happened wasn't her fault, but it's not entirely remarkable that people put a lot of effort into seeing her nekkid.