Android Question Object should first be initialized (B4XBitmap)

B4X:
Sub Globals
    Private selfieimage As B4XImageView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    selfieimage.Bitmap = ActivityInOut.bmpimg
End Sub

When I run this code there are times that it is working and there are times that it displays the error object should first be initialized (b4xbitmap)

How could I resolve this?
 
Top