Ee was removing driveline from a D10 dozer. While removing the bolts from the U joint fasteners, the driveline pivoted pinching the ee's right thumb between the yoke and the driveline. Seen at ER, diagnosed with a fracture and a laceration requiring stitches. Released to restricted duty.