session code search cannot be null