Removing Null Pointer Exception when default value is not specified.