Dr James Lilja, pictured, is awaiting trial after being accused of negligent treatment

The founding drummer in the punk band The Offspring saved a jurors life during his own medical malpractice hearing.

As 35 prospective jurors sat in Alameda County Superior Court in Oakland, California, one of them collapsed and hit his head.

Dr James Lilja leaped into action and having established the man had lost consciousness and had no pulse, he successfully administered CPR.

After the casualty was taken away with a pulse, the judge was forced declare a mistrial, stating the former rocker's heroics would sway the jury.

Lilja left the music scene in the late 1980s to concentrate on his medical career - running his own gynecology practice out of San Jose and Fremont.

Talking after the incident, the doctor told Law360: 'No good deed goes unpunished.'

He is awaiting trial after being accused of negligent treatment by Stephenie Sargiotto and her husband, John, according to the SF Gate.

The heroics led their attorney, Robert G Schock to request the mistrial.

Talking to judge Ronni MacLaren, Schock said: 'How could the potential jurors not be biased after witnessing the defendant's bold action.'

Unsurprisingly, Lilja's attorney pushed back, but the judge came down on the side of the plaintiff, saying the jurors' bias would be 'incurable'.

Back in 1984, the gynecologic physician was on the drums for The Offspring as they started out in Orange County, California.

Dexter Holland (left) and Noodles (Kevin Wasserman) performing with American punk group The Offspring in London 1995 in the early years after Lilja had left the band in 1987

Lilja formed the band with Offspring frontman Dexter Holland (pictured), who said back in 2014, 'This guy was dying to get into medical schoo

He was with the band for three years before leaving to concentrate on his medical career.

Lilja formed the band with Offspring frontman Dexter Holland, who said back in 2014, 'This guy was dying to get into medical school.

'In fact, he was so intent on getting into medical school that he didn't really even practice with us much.'

Ron Welty took Lilja's place in the band 31 years ago, and remains the group's drummer to this day.

After leaving the band, Lilja enrolled at the University of Pittsburgh School of Medicine where he gained his qualifications.

He worked his way up to owning his own practice, specializing in the treatment of cancerous and precancerous conditions of the female reproductive tract.