Merge pull request #6801 from samme/fix/getPipelineName-null

`getPipelineName()` is null if pipeline is null
This commit is contained in:
Richard Davey 2024-06-06 15:18:12 +01:00 committed by GitHub
commit d18f42377b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -205,11 +205,11 @@ var Pipeline = {
* @webglOnly
* @since 3.0.0
*
* @return {string} The string-based name of the pipeline being used by this Game Object.
* @return {?string} The string-based name of the pipeline being used by this Game Object, or null.
*/
getPipelineName: function ()
{
return this.pipeline.name;
return (this.pipeline === null) ? null : this.pipeline.name;
}
};