I'm simply declaring the variable like so:
Public Image As Bitmap
I'm then trying to pull a weather bitmap out of the ICOSWorldForecastFree library from the CCIcon property which is a read-only android.graphics.Bitmap type:
I get this error:
java.lang.NullPointerException: expected receiver of type anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper, but got null
However, when I add a watch of CCIcon = Null it returns False. I also looked at the object in the variables section and it has data in it. So I'm not sure what to do to fix it.
Public Image As Bitmap
I'm then trying to pull a weather bitmap out of the ICOSWorldForecastFree library from the CCIcon property which is a read-only android.graphics.Bitmap type:
B4X:
Image = forecastObject.CCIcon
I get this error:
java.lang.NullPointerException: expected receiver of type anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper, but got null
However, when I add a watch of CCIcon = Null it returns False. I also looked at the object in the variables section and it has data in it. So I'm not sure what to do to fix it.