Complex sentence: He was also a Judge of U.S. District Court for Massachusetts, from 1942-1948; he died whilst serving in this office.
Split into simpler sentences: He was also a Judge of U.S. District Court for Massachusetts, from 1942-1948. He died whilst serving in this office.