Skip to content Skip to sidebar Skip to footer

Member Variable Is Null After Function Return?

I have a class that extends View. This class has the member variable mCanvas private Canvas mCanvas; This variable is created when the view is resized, so the appropriate sizes fo

Solution 1:

I think the problem is in your resizeCanvas as you can return from it before initializing mCanvas.


Post a Comment for "Member Variable Is Null After Function Return?"