Hi all,
If i have a class - Product, it has 2 fields, String name, and Bitmap productImage. If I try to access the bitmap from another class like Bitmap b = p.productImage; I get null (i have tried many different ways - directly accessing or via a getter method) but if i try to access the string variable of the object it's fine. i know the bitmap has been created. Do i have to convert the bitmap into something else? or is my way of doing it correct?
Please hlp, i'm going out of my mind with this nullpionterexce ption.
If i have a class - Product, it has 2 fields, String name, and Bitmap productImage. If I try to access the bitmap from another class like Bitmap b = p.productImage; I get null (i have tried many different ways - directly accessing or via a getter method) but if i try to access the string variable of the object it's fine. i know the bitmap has been created. Do i have to convert the bitmap into something else? or is my way of doing it correct?
Please hlp, i'm going out of my mind with this nullpionterexce ption.
Comment