1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 11:21:29 +00:00

Fixed a possible crash if config has not yet been initialized on startup.

This commit is contained in:
Felix Ableitner 2014-09-14 18:28:39 +03:00
parent ffefe46eed
commit 4e254984ca

View file

@ -384,7 +384,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener {
*/
public List<Node> getNodes() {
if (mConfig == null)
return null;
return new ArrayList<>();
try {
return getNodes(mConfig.getJSONArray("Nodes"));