FSocket = nullptr

FSocket *UdpSenderSocket = FUdpSocketBuilder(TEXT(“UpdSendSocket”))
.AsNonBlocking()
.AsReusable()
.BoundToEndpoint(EndPoint)
.BoundToPort(ThePort)
.BoundToAddress(Addr)
.WithBroadcast()
.WithReceiveBufferSize(BufferSize)
.Build() ;

		if (UdpSenderSocket != nullptr)
	{
		UDPReceiver = new FUdpSocketReceiver(UdpSenderSocket, ThreadWaitTime, TEXT("UDP RECEIVER"));
		UDPReceiver->OnDataReceived().BindUObject(this, &AUdpReceiver::Recv);
		UDPReceiver->Start();
	}
	else
	{     GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, TEXT("Empty"));    }

This is my code but UdpSenderSocket gives nullptr and if i dont use if to check if its null engine crashes with check(Socket != nullptr); assertion failed error.