I would change this by `this.nameSpace = nameSpace != null ? nameSpace : ""` , and remove the default value in the paremeter definition