Private client As IFirebaseClient
Public Class PersonalData
Public Property helloBlock() As String = "off"
End Class
Private Sub helloToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles helloToolStripMenuItem.Click
Try
Dim PD As New PersonalData() With
{
.helloBlock = "off"
}
Dim save = client.Set("func/", PD) 'To save data to Firebase Database.
MessageBox.Show("hello off", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information)
Catch ex As Exception
If ex.Message = "One or more errors occurred." Then
MessageBox.Show("Cannot connect to firebase, check your network !", "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Error)
Else
MessageBox.Show(ex.Message, "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End Try
End Sub
in this line Dim save = client.Set("func/", PD) 'To save data to Firebase Database.
error System.NullReferenceException Object reference not set to an instance of an object.
can anyone here help me pls fix this.