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

GitHub | EduardoSolanas | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    NullPointerException trying to invoke toLowerCase() on null object

    GitHub | 5 years ago | EduardoSolanas
    java.lang.NullPointerException: Cannot invoke method toLowerCase() on null object

    Root Cause Analysis

    1. java.lang.NullPointerException

      Cannot invoke method toLowerCase() on null object

      at grails.plugin.inviter.module.YahooInviterService$_getContacts_closure2.doCall()
    2. grails.plugin.inviter
      YahooInviterService$_getContacts_closure2.doCall
      1. grails.plugin.inviter.module.YahooInviterService$_getContacts_closure2.doCall(YahooInviterService.groovy:70)
      1 frame
    3. Java RT
      Collections.sort
      1. java.util.Arrays.mergeSort(Arrays.java:1270)
      2. java.util.Arrays.sort(Arrays.java:1210)
      3. java.util.Collections.sort(Collections.java:159)
      3 frames
    4. grails.plugin.inviter
      YahooInviterService$$FastClassByCGLIB$$5b6d56f6.invoke
      1. grails.plugin.inviter.module.YahooInviterService.getContacts(YahooInviterService.groovy:70)
      2. grails.plugin.inviter.module.YahooInviterService$$FastClassByCGLIB$$5b6d56f6.invoke(<generated>)
      2 frames
    5. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      1 frame
    6. grails.plugin.inviter
      InviterController$_closure4.doCall
      1. grails.plugin.inviter.module.YahooInviterService$$EnhancerByCGLIB$$e4b61be8.getContacts(<generated>)
      2. grails.plugin.inviter.module.YahooInviterService$getContacts.call(Unknown Source)
      3. grails.plugin.inviter.InviterController$_closure4.doCall(InviterController.groovy:77)
      4. grails.plugin.inviter.InviterController$_closure4.doCall(InviterController.groovy)
      4 frames
    7. Shiro
      OncePerRequestFilter.doFilter
      1. org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
      2. org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
      3. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
      4. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
      5. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:376)
      6. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
      7. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
      7 frames
    8. org.apache.shiro
      SavedRequestFilter.doFilter
      1. org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
      1 frame
    9. com.studentsonly.grails
      CacheFilter.doFilter
      1. com.studentsonly.grails.plugins.uiperformance.CacheFilter.doFilter(CacheFilter.java:67)
      1 frame
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames