postaddictme/instagram-java-scraper

NullPointerException when using getMediasByTag

Closed this issue · 7 comments

Using the new 2.0 version I get:

2018-01-17T20:59:39.519034+00:00 app[web.1]: java.lang.NullPointerException: null
2018-01-17T20:59:39.519035+00:00 app[web.1]: 	at me.postaddict.instagram.scraper.mapper.ModelMapper.mapTag(ModelMapper.java:81)
2018-01-17T20:59:39.519037+00:00 app[web.1]: 	at me.postaddict.instagram.scraper.request.GetMediaByTagRequest.mapResponse(GetMediaByTagRequest.java:40)
2018-01-17T20:59:39.519038+00:00 app[web.1]: 	at me.postaddict.instagram.scraper.request.GetMediaByTagRequest.mapResponse(GetMediaByTagRequest.java:13)
2018-01-17T20:59:39.519039+00:00 app[web.1]: 	at me.postaddict.instagram.scraper.request.PaginatedRequest.requestInstagramResult(PaginatedRequest.java:39)
2018-01-17T20:59:39.519040+00:00 app[web.1]: 	at me.postaddict.instagram.scraper.Instagram.getMediasByTag(Instagram.java:136)

@tpraizler no, it is too small changes in instagram-java-scraper to release into maven central

@igor-suhorukov I basicly use your lib only by using the method.
This means I cannot use your lib, which is a bummer ...:(
Can you release a minor version? 2.0.1?

Thanks!

Now I get:

Jan 19 14:21:43 app/web.1:  java.lang.NullPointerException: null 
Jan 19 14:21:43 app/web.1:  	at java.util.ArrayList.addAll(ArrayList.java:581) 
Jan 19 14:21:43 app/web.1:  	at me.postaddict.instagram.scraper.request.GetMediaByTagRequest.updateResult(GetMediaByTagRequest.java:29) 
Jan 19 14:21:43 app/web.1:  	at me.postaddict.instagram.scraper.request.GetMediaByTagRequest.updateResult(GetMediaByTagRequest.java:13) 
Jan 19 14:21:43 app/web.1:  	at me.postaddict.instagram.scraper.request.PaginatedRequest.requestInstagramResult(PaginatedRequest.java:48) 
Jan 19 14:21:43 app/web.1:  	at me.postaddict.instagram.scraper.Instagram.getMediasByTag(Instagram.java:136) 

I have opened a new issue for that:
#89