T Thraka Member Licensed User Longtime User Aug 11, 2014 #1 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: Code: Copy 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.
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: Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Aug 12, 2014 #2 Can you post the whole code? Or at least the sub code? Upvote 0