getPipelineName() is null if pipeline is null

Fixes #6799
This commit is contained in:
samme 2024-04-25 09:10:47 -07:00
parent e337b6e4d1
commit 840ff020f8

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;
}
};