Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't crash if the mobileorg.org file doesn't exist

  • Loading branch information...
commit c538794ecaca88cfd1798015b2a2042002ef1e7f 1 parent 013710c
@matburt authored
View
6 src/com/matburt/mobileorg/Synchronizers/WebDAVSynchronizer.java
@@ -49,8 +49,12 @@ public void push() throws NotFoundException, ReportableError {
BufferedReader reader = this.getReadHandle("mobileorg.org");
String fileContents = "";
this.pushedStageFile = false;
-
String thisLine = "";
+
+ if (reader == null) {
+ return;
+ }
+
try {
while ((thisLine = reader.readLine()) != null) {
fileContents += thisLine + "\n";
Please sign in to comment.
Something went wrong with that request. Please try again.