Hello. I have come across a null pointer exception in my code. I understand this is got if there is no class/method/variable being referred to but in my case, I have a method in another class that is supposed to be called. However, the exception is thrown at the where I call it..
classB.getVar();
and this is the method skeleton in the class "classB"
public voidgetVar(){
}
Hope this can be helpful enough..I will post any more code if needed..
ps..Am not using actual method and class names for discretion purposes..