leaudio: Fix possible crash

Bug: 263411708
Test: atest BluetoothInstrumentationTests
Test: manual, connect leaudio set while streaming to other leaudio
Tag: #feature
Change-Id: I48d2d674f5febdd0af7227b342e26f2f45937c53
diff --git a/system/bta/le_audio/client.cc b/system/bta/le_audio/client.cc
index 037f301..6a4dee7 100644
--- a/system/bta/le_audio/client.cc
+++ b/system/bta/le_audio/client.cc
@@ -2360,6 +2360,11 @@
       return;
     }
 
+    if (!stream_conf->conf) {
+      LOG_INFO("Configuration not yet set. Nothing to do now");
+      return;
+    }
+
     auto num_of_devices =
         get_num_of_devices_in_configuration(stream_conf->conf);