I have this error in Crashlytics:
This is the code:
The error occurs with Android 15 but it does not always happen.
Any idea where the error could be?
B4X:
Fatal Exception: java.lang.NullPointerException
Attempt to read from null array
myapp.zoomimageview._touchlistener_event (zoomimageview.java:370)
This is the code:
B4X:
Sub Class_Globals
Public Root As B4XView 'ignore
Private xui As XUI 'ignore
Private zimgView As ZoomImageView
End Sub
Sub B4XPage_Appear
Sleep(100)
Dim FileNameTest As String = "test.txt"
If File.Exists("FolderFile", FileNameTest) Then
Dim bmp As B4XBitmap = xui.LoadBitmap("FolderFile", FileNameTest)
If bmp.IsInitialized Then
zimgView.SetBitmap(bmp)
End If
End If
End Sub
The error occurs with Android 15 but it does not always happen.
Any idea where the error could be?