As the employee was operating the Wagner 25X, #9, the door on the operators compartment came open. The employee stopped the machine and reached out to the top of the door and slammed it shut. As the door shut it smashed EE's right hand between the door and the cab of the machine. Stitches were required.