From: Roland Haeder Date: Wed, 12 Aug 2015 12:54:22 +0000 (+0200) Subject: Opps! Wrong way around ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5591172a0fe83c678f6ad1ee52d536374627d14a;p=jcore.git Opps! Wrong way around ... Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/database/backend/base64/Base64CsvDatabaseBackend.java b/src/org/mxchange/jcore/database/backend/base64/Base64CsvDatabaseBackend.java index a2bfb92..db83391 100644 --- a/src/org/mxchange/jcore/database/backend/base64/Base64CsvDatabaseBackend.java +++ b/src/org/mxchange/jcore/database/backend/base64/Base64CsvDatabaseBackend.java @@ -115,7 +115,7 @@ public class Base64CsvDatabaseBackend extends BaseDatabaseBackend implements Dat this.rewind(); // Then loop over all rows until the end has reached - while (this.isEndOfFile()) { + while (!this.isEndOfFile()) { // Read line String line = this.readLine(); @@ -261,7 +261,7 @@ public class Base64CsvDatabaseBackend extends BaseDatabaseBackend implements Dat // Is the line null? if (base64 == null) { // Then throw NPE here - throw new NullPointerException("base64 is null"); //NOI18N + throw new NullPointerException("base64 is null, maybe missed to call isEndOfFile() ?"); //NOI18N } // Decode BASE-64