Skip to content

Commit

Permalink
Update BookNamesake.java
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin authored May 19, 2024
1 parent fb062d2 commit 4c64d76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/orgzly/android/sync/BookNamesake.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ public void updateStatus(int reposCount) {
status = BookSyncStatus.ONLY_BOOK_WITH_LINK;
}
} else { /* Only local book without link. */
if (book.getBook().getLastAction().getType() == BookAction.Type.ERROR) {
BookAction? lastAction = book.getBook().getLastAction();
if (lastAction != null && lastAction.getType() == BookAction.Type.ERROR) {
// Book has previously had trouble syncing.
status = BookSyncStatus.BOOK_WITHOUT_LINK_AND_PREVIOUS_ERROR;
} else {
Expand Down

0 comments on commit 4c64d76

Please sign in to comment.