Skip to content

Commit 8e2490f

Browse files
committed
Errorhandling
1 parent 288b234 commit 8e2490f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/HTTPTerraSync.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private HashSet<String> syncTile(String path) throws IOException {
225225
// TODO Auto-generated catch block
226226
e.printStackTrace();
227227
}
228-
return null;
228+
return new HashSet<String>();
229229
}
230230

231231
/**
@@ -326,7 +326,7 @@ private byte[] getFile(URL fileURL) throws IOException, FileNotFoundException {
326326
+ responseCode);
327327
}
328328
httpConn.disconnect();
329-
return null;
329+
return "".getBytes();
330330
}
331331

332332
private void syncModels() {

0 commit comments

Comments
 (0)