s cannot be null here, so remove the useless test and error-handling block.