java.lang.NullPointerException: Cannot invoke method sayHi() on null object


Solutions on the web

Solution icon of stackoverflow
Cannot invoke method sayHi() on null object

Stack trace

java.lang.NullPointerException: Cannot invoke method sayHi() on null object
	at test.User.sayHi(User.groovy:17)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.