]> git.mxchange.org Git - jcore.git/commitdiff
Opps! Wrong way around ...
authorRoland Haeder <roland@mxchange.org>
Wed, 12 Aug 2015 12:54:22 +0000 (14:54 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 12 Aug 2015 12:54:22 +0000 (14:54 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/database/backend/base64/Base64CsvDatabaseBackend.java

index a2bfb92113312d32940d8c35b39098278995f835..db83391a1c61ae58a5992b9dc22ad834f7c986d1 100644 (file)
@@ -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