knjk04 / Bookshelf

Android book wishlist app
GNU General Public License v3.0
1 stars 1 forks source link

bookList.getBooks() on null object reference #10

Open knjk04 opened 5 years ago

knjk04 commented 5 years ago

Branch: experimental Line: 218 in SearchableActivity.java

<Book> books = Arrays.asList(bookList.getBooks());

A check could be made to see if bookList is null (e.g. the code below), but I don't see why bookList should be null in the first place. A search query was made (non-empty) and some data was read from the API call.

if (bookList != null)