A state law requiring a 50-foot buffer around a sexually oriented business is constitutional, even if the physical constraints of the property make compliance impossible, a Morris County judge ruled on Wednesday.

The ruling was a setback for a company that leased space on Route 10 in East Hanover for a shop dealing in videos, lingerie and other adult-themed items.