0

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..

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by joshmo
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.