orDefaultSpaceId

Safely resolves a nullable space identifier to the default namespace if null or empty.

This extension function provides a convenient way to handle optional namespace values, ensuring a consistent non-null return value for data layer operations.

Receiver

The nullable SpaceId to resolve, may be null or empty

Return

The provided spaceId if non-null and non-empty, otherwise DEFAULT_SPACE_ID