Yes, is there a breakdown of income between the two states on the NEC? If not, you can prorate by days. Check with each Dept of Revenue to see if he meets the filing requirements.
CA DOR
MA DOR