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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.NullPointerException: Cannot invoke method toLowerCase() on null object
at grails.plugin.inviter.module.YahooInviterService$_getContacts_closure2.doCall(YahooInviterService.groovy:70)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.sort(Arrays.java:1210)
at java.util.Collections.sort(Collections.java:159)
at grails.plugin.inviter.module.YahooInviterService.getContacts(YahooInviterService.groovy:70)
at grails.plugin.inviter.module.YahooInviterService$$FastClassByCGLIB$$5b6d56f6.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at grails.plugin.inviter.module.YahooInviterService$$EnhancerByCGLIB$$e4b61be8.getContacts()
at grails.plugin.inviter.module.YahooInviterService$getContacts.call(Unknown Source)
at grails.plugin.inviter.InviterController$_closure4.doCall(InviterController.groovy:77)
at grails.plugin.inviter.InviterController$_closure4.doCall(InviterController.groovy)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:376)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
at com.studentsonly.grails.plugins.uiperformance.CacheFilter.doFilter(CacheFilter.java:67)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

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.

Know the solutions? Share your knowledge to help other developers to debug faster.