Re: java.lang.NullPointerException with Twitter API

2015-09-14 Thread Akhil Das
Some status might not have the geoLocation and hence you are doing a null.toString.contains which ends up in that exception, put a condition or try...catch around it to make it work. Thanks Best Regards On Fri, Sep 11, 2015 at 12:59 AM, Jo Sunad wrote: > Hello! > > I am trying to customize the

java.lang.NullPointerException with Twitter API

2015-09-10 Thread Jo Sunad
Hello! I am trying to customize the Twitter Example TD did by only printing messages that have a GeoLocation. I am getting a NullPointerException: java.lang.NullPointerException at Twitter$$anonfun$1.apply(Twitter.scala:64) at Twitter$$anonfun$1.apply(Twitter.scala:64) at