DANVILLE — The 12-year-old son of two Oakland police officers was taken to a hospital earlier this week after he accidentally shot himself in the arm, according to Danville police.

Police received the call around 4:50 p.m. Tuesday from a woman saying her son had shot himself in the arm at their Danville home.

The boy was treated at Children’s Hospital Oakland and released.

Danville police Lt. Allan Shields would not confirm who the weapon belonged to or how the boy obtained access to the gun.

According to the Associated Press, the boy’s father is a sergeant with the Oakland Police Department. And, the mother’s recorded call to police dispatchers revealed she was an off-duty police officer.

Shields says there was no cause for concern.

“If we felt there were any public safety concerns, we would have taken immediate action,” Shields said.

The boys’ parents are both employees of the Oakland Police Department. It was not immediately clear whether the gun was a department-issued weapon.

Parents can be held liable if a weapon inside their home is found to not be properly secured.

The case was sent to the Contra Costa County District Attorney’s office for review, officials said.

As of Monday, no charges had been filed.

Staff writer Natalie Neysa Alund contributed to this story. Contact Karina Ioffee at 650-576-9626. Follow her at Twitter.com/kioffee.