I wouldn't own a firearm that can't be dry fired. In a modern pistol there should be no issues.
On the other hand, in order to not have the firing pin spring under compression you might try racking the action with the trigger pulled. That works on bolt action rifles for sure, maybe a pistol too.