From 91fc540d6c23737fd7ae9bfb99bfdbcf205dd3fe Mon Sep 17 00:00:00 2001 From: Nikolay Pultsin Date: Thu, 11 Nov 2010 13:09:45 +0000 Subject: [PATCH 1/2] NPE in library has been fixed --- src/org/geometerplus/fbreader/library/Library.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/geometerplus/fbreader/library/Library.java b/src/org/geometerplus/fbreader/library/Library.java index 9de35e4cf..8f5dbcbd5 100644 --- a/src/org/geometerplus/fbreader/library/Library.java +++ b/src/org/geometerplus/fbreader/library/Library.java @@ -156,7 +156,10 @@ public final class Library { collectBooks(file, fileInfos, savedBooks, !fileInfos.check(file)); file.setCached(false); } - myBooks.add(getBook(getHelpFile(), fileInfos, savedBooks, false)); + final Book helpBook = getBook(getHelpFile(), fileInfos, savedBooks, false); + if (helpBook != null) { + myBooks.add(helpBook); + } collectExternalBooks(fileInfos, savedBooks); @@ -215,9 +218,6 @@ public final class Library { collectBooks(); //System.err.println(myBooks.size() + " books " + System.currentTimeMillis() % 20000); for (Book book : myBooks) { - if (book == null) { - continue; - } bookById.put(book.getId(), book); List authors = book.authors(); if (authors.isEmpty()) { From cc89a0d77e7439b1ae1071c3f663cfd9b6238a0b Mon Sep 17 00:00:00 2001 From: Nikolay Pultsin Date: Thu, 18 Nov 2010 14:11:21 +0000 Subject: [PATCH 2/2] updated German resources --- ChangeLog | 3 +- assets/resources/application/de.xml | 389 ++++++++++++++-------------- assets/resources/zlibrary/de.xml | 55 ++-- 3 files changed, 225 insertions(+), 222 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86db33395..9ca79ac58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ ===== 0.7.18 (??? ??, 2010) ===== * Local library activity has been moved to a separate process -* French resources have been updated +* French resources have been updated (by Mathias Monnerville) +* German resources have been updated (by Ingolf Kübler) ===== 0.7.17 (Nov 14, 2010) ===== * Network catalog order has been changed: language is used for ordering diff --git a/assets/resources/application/de.xml b/assets/resources/application/de.xml index 59d5dcc9b..0e061d4ad 100644 --- a/assets/resources/application/de.xml +++ b/assets/resources/application/de.xml @@ -1,5 +1,6 @@ + @@ -8,94 +9,94 @@ - - + + - + - - + + - - - + + + - + - - + + - - + + - + - - - - + + + + - - - - - - + + + + + + - + - - - + + + - + - + - - - + + + - - - - - - + + + + + + - + - + @@ -105,13 +106,13 @@ - + - + - + @@ -119,16 +120,16 @@ - - + + - - + + - + @@ -137,43 +138,43 @@ - - - - + + + + - + - - - - + + + + - - + + - - + + - - - + + + - - - - - - - - - + + + + + + + + + @@ -182,95 +183,95 @@ - - - + + + - - - - + + + + - - + + - - + + - + - - - - - - - + + + + + + + - - - - + + + + - - - + + + - - - + + + - - - + + + - - - + + + - + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - + + + - - - + + + - - - + + + - - - + + + @@ -305,85 +306,85 @@ - - + + - + - + - + - - - - + + + + - + - + - - + + - + - - - + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - + + + + - + - + - + - + @@ -395,18 +396,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -418,32 +419,32 @@ - - - - + + + + - + - + - + - + diff --git a/assets/resources/zlibrary/de.xml b/assets/resources/zlibrary/de.xml index 938a55823..41299cbbc 100644 --- a/assets/resources/zlibrary/de.xml +++ b/assets/resources/zlibrary/de.xml @@ -1,5 +1,6 @@ + @@ -11,27 +12,27 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -40,17 +41,17 @@ - + - + - + - - + + @@ -83,7 +84,7 @@ - +