Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a null check

  • Loading branch information...
commit 6d18d0bc524ff0d0d34be6dcd24388bddf8c1dfa 1 parent 2b0ec5f
@mdentremont mdentremont authored U-dEntremont-PC\Matt committed
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);
Please sign in to comment.
Something went wrong with that request. Please try again.