Permalink
Browse files

Add a null check

  • Loading branch information...
1 parent 2b0ec5f commit 6d18d0bc524ff0d0d34be6dcd24388bddf8c1dfa @mdentremont mdentremont committed with U-dEntremont-PC\Matt Oct 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 org.rssowl.core/src/org/rssowl/core/internal/persist/service/DBManager.java
View
3 org.rssowl.core/src/org/rssowl/core/internal/persist/service/DBManager.java
@@ -801,7 +801,8 @@ private int getWorkspaceFormatVersion() {
try {
reader = new BufferedReader(new FileReader(getOldDBFormatFile()));
String text = reader.readLine();
- DBHelper.writeToFile(formatFile, text);
+ if (text != null)
+ DBHelper.writeToFile(formatFile, text);
formatFileExists = true;
} catch (IOException e) {
throw new PersistenceException(e);

0 comments on commit 6d18d0b

Please sign in to comment.