fix: Avoid panic in `(WorkspaceListOutput) CurrentWorkspace` if no workspaces are listed (#214)
diff --git a/workspace_list.go b/workspace_list.go
index 282b739..79eb4e9 100644
--- a/workspace_list.go
+++ b/workspace_list.go
@@ -28,7 +28,7 @@
 // nil is returned. Calling code should look for diagnostics in the receiver WorkspaceListOutput to
 // see if an explicit error has occurred or not.
 func (wlo *WorkspaceListOutput) CurrentWorkspace() *WorkspaceListEntry {
-	if wlo == nil {
+	if wlo == nil || len(wlo.Workspaces) == 0 {
 		return nil
 	}