From d908797e338739eec4b29d64ec76d905b16c04bf Mon Sep 17 00:00:00 2001 From: Harry Pidcock Date: Fri, 28 Apr 2023 16:52:38 +1000 Subject: [PATCH] Fix typed nil being returned. --- application.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application.go b/application.go index 0515f02..5c73e72 100644 --- a/application.go +++ b/application.go @@ -556,6 +556,9 @@ func (a *application) Validate() error { // ProvisioningState implements Application. func (a *application) ProvisioningState() ProvisioningState { + if a.ProvisioningState_ == nil { + return nil + } return a.ProvisioningState_ }